How casting works with examples. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How casting works with examples.

c++ Casting

1st Jun 2020, 5:42 PM
The Unknown
The Unknown - avatar
5 Answers
+ 2
float a = 5.53; int b = (int)a; Done.
1st Jun 2020, 5:59 PM
Sachin Artani
Sachin Artani - avatar
+ 2
Hey Hey! Easy! The Unknown I hope you got your answer 😊 You can try it on code playground and let us know the code if you face any issue.
2nd Jun 2020, 1:47 PM
Sachin Artani
Sachin Artani - avatar
+ 1
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 "Then don't expect anything from us".who the hell told you I will. I knew I wouldn't expect anything from you once you said "without seeing attempt". How would I have attempt on something I don't even know. I don't even know the code for it. My question was I need code example. I need code example so I can have an attempt for it. But you said "we don't provide code". So how would I have an attempt ?. I don't know the code to have attempt. I will never expect anything from people like you anymore
2nd Jun 2020, 2:36 PM
The Unknown
The Unknown - avatar
0
Can you give me code examples please ?
1st Jun 2020, 6:01 PM
The Unknown
The Unknown - avatar
0
Kiibo Ghayal And sorry to say, But I ain't going have an attempt for something I don't even know.
2nd Jun 2020, 11:35 AM
The Unknown
The Unknown - avatar