Why answer is 2?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Why answer is 2??

Doubt in c regarding sizeof operator. https://code.sololearn.com/c41dLr8wVwd1/?ref=app

28th Aug 2020, 5:49 PM
Gujjula Pradeep Reddy
Gujjula Pradeep Reddy - avatar
1 Réponse
+ 6
The literal 10.5 creates a double. Double has a different size than float.
28th Aug 2020, 6:05 PM
HonFu
HonFu - avatar