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

Post a Comment

0 Comments