Is int variable value can be stored in float pointer ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is int variable value can be stored in float pointer ?

26th Apr 2022, 12:48 PM
Himanshu Sharma
Himanshu Sharma - avatar
3 Answers
+ 2
What does your compiler tell you when you try?
26th Apr 2022, 1:02 PM
Lisa
Lisa - avatar
+ 2
Well, a void pointer isn't a float pointer. A void pointer can hold the address of any type...
26th Apr 2022, 1:13 PM
Lisa
Lisa - avatar
0
It showing error Lisa but if we take void pointer then?
26th Apr 2022, 1:09 PM
Himanshu Sharma
Himanshu Sharma - avatar