C
Programming and Technical
Programming
Output
#include
int main()
{
struct value
{
int bit1:1;
int bit3:4;
int bit4:4;
}bit={1, 2, 13};
printf("%d, %d, %dn", bit.bit1, bit.bit3, bit.bit4);
return 0;
}
A. 1, 2, 13 B. 1, 4, 4
C. -1, 2, -3 D. -1, -2, -13
Read Solution (Total 4)
-
- ans c cz bit contain the value respectively 1,2,13 and o/p=bit.bit1=1.(-1) respectively
- 9 years agoHelpfull: Yes(1) No(0)
- ans is : -1 2 -3
- 8 years agoHelpfull: Yes(1) No(0)
- Ans is A.
http://www.geeksforgeeks.org/bit-fields-c/ - 9 years agoHelpfull: Yes(0) No(2)
- soumya cud u xplain it how?
- 8 years agoHelpfull: Yes(0) No(0)
C Other Question