Java
T
point
Home
Python
Java
JavaScript
HTML
SQL
PHP
C#
C++
DS
Aptitude
Reasoning
Selenium
DBMS
C
Android
Interview Q
Content Menu ▼
1
2
3
4
5
6
7
8
9
10
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