Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 What will be the output of the program? #include<stdio.h> int main() { float p; printf("%d\n", sizeof(p)); return 0; } ?->(Show Answer!)
1. What will be the output of the program? #include<stdio.h> int main() { float p; printf("%d\n", sizeof(p)); return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.01 pm
sizeof(x) returns the size of x in bytes.
float *p is a pointer to a float. In 16 bit compiler, the pointer size is always 2 bytes.
In 32 bit compiler, the pointer size is always 4 bytes.
float *p is a pointer to a float. In 16 bit compiler, the pointer size is always 2 bytes.
In 32 bit compiler, the pointer size is always 4 bytes.