what is type casting in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

what is type casting in c++

26th Feb 2018, 7:23 PM
NITIN BHOLA
NITIN BHOLA - avatar
2 Answers
+ 1
it means changing from data type to another for example you can cast an double variable to int double x = 1.5; int x = (int)x;
26th Feb 2018, 7:26 PM
Mostafa Khaled
Mostafa Khaled - avatar
27th Feb 2018, 2:31 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar