What is typecasting in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is typecasting in c++

i am confused on it.

2nd Jul 2017, 4:19 AM
Santhosh Deena
Santhosh Deena - avatar
1 Answer
+ 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