C
Programming and Technical
Programming
Definition
#include
int main()
{
struct byte
{
int one:1;
};
struct byte var = {1};
printf("%dn", var.one);
return 0;
}
A. 1 B. -1
C. 0 D. Error
Read Solution (Total 3)
-
- in printf("%dn", var.one); ans is -1
otherwise -1n - 9 years agoHelpfull: Yes(0) No(0)
- the o/p will be -1n.
if we omit "n" from printf statement then it will be -1 - 8 years agoHelpfull: Yes(0) No(0)
- But why it is printing -1, can anyone explain
- 7 years agoHelpfull: Yes(0) No(0)
C Other Question