- Structures, Unions, Enums - General Questions
- Structures, Unions, Enums - Find Output of Program
- Structures, Unions, Enums - Point Out Errors
- Structures, Unions, Enums - Point Out Correct Statements
- Structures, Unions, Enums - True / False Questions
- Structures, Unions, Enums - Yes / No Questions


Structures, Unions, Enums - Programming
Q1: 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;
}
A 4
B 2
C
Error: cannot set bit field for float
D Error: Invalid member access in structure
ANS:A - 4 No answer description is available. Let's discuss. |


For help Students Orientation
Mcqs Questions
One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.