Question d’entretien chez Vensai

Why do we need type casting in programming

Réponse à la question d'entretien

Utilisateur anonyme

26 juin 2012

Becuase, sometimes data is in a form that is unrecognizable to the program. Example: int a = 2; int b = 3; double c = a / b; We cast c as a double. if it was not, then the data would not have a decimal value.