Question
#include<stdio.h>
int main()
{
float *p;
printf("%d\n", sizeof(p));
return 0;
}
What will be the output of the program?
#include<stdio.h>
int main()
{
float *p;
printf("%d\n", sizeof(p));
return 0;
}
Answer: Option A
Was this answer helpful ?
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.
Was this answer helpful ?
More Questions on This Topic :
Question 8.
The binary equivalent of 5.375 is
....
Submit Solution