Home » C Programming » Structures, Unions, Enums

Point out the error in the program? #include int main() { struct bits { float f:2; }bit; printf("%d\n", sizeof(bit)); return 0; }

Correct Answer: Error: cannot set bit field for float

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion