Sail E0 Webinar
Question


Point out the error in the program?


#include<stdio.h>
int main()
{
struct bits
{
float f:2;
}bit;
printf("%d\n" , sizeof(bit));
return 0;
}
Options:
A .  4
B .  2
C .  Error: cannot set bit field for float
D .  Error: Invalid member access in structure
Answer: Option C

No answer description available for this question. 



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers