HOME | LAB PROGRAMMING | RATIONAL ROSE DIAGRAM | COMPUTE GRAPHICS | CLASS DIAGRAM | NETWORK PROGRAMING | BEST OF THE SITE

Sizeof value in c/c++

main()
{
printf(“%d%d%d”,sizeof(3.14f),sizeof(3.14),sizeof(3.14l));
}

Tutorial answer:
4 8 10
Debugging solution:
float size value(3.14f):4
Normal pointer value it will take
As double(3.14):8
Long double(3.14l):10

0 comments: