Domanda di colloquio di Vensai

Why do we need type casting in programming

Risposta di colloquio

Anonimo

26 giu 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.