12345678910



Question 1: Point out the error in the program?

#include<stdio.h>

int main()
{
struct bits
{
float f:2;
}bit;

printf("%d ", sizeof(bit));
return 0;
}

1. 4
2. 2
3. Error: cannot set bit field for float
4. Error: Invalid member access in structure