Point out the error in the program in gcc compiler?

		
					

Loading

Choose the correct option.

Point out the error in the program in gcc compiler?

#include  
int main() {
struct bits {
int i:40;
}bit;
printf("%d ", sizeof(bit));
return 0;
}

A. error: width of ‘i’ exceeds its type
B. 4
C. 2
D. Error: Invalid member access in structure

Leave a Comment