What is typecasting in c++ | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What is typecasting in c++

i am confused on it.

2nd Jul 2017, 4:19 AM
Santhosh Deena
Santhosh Deena - avatar
1 Respuesta
+ 3
Typecasting is a way to change a variable to a new type. For example: string a = "42"; int a_number = (int)a;
2nd Jul 2017, 4:22 AM
Keto Z
Keto Z - avatar