C - Structures,Unions - Discussion

You Are Here :: Home > C > Structures,Unions - Discussion

 



Q.

What will be the output of the program ?

#include
int main()
{
struct byte
{
int one:1;
};
struct byte var = {1};
printf("%d\n", var.one);
return 0;
}

A. 1 B. -1
C. 0 D. Error

Answer: Option B
Explaination:

No Explanation



Discussion

Your Comments Goes here...
NameDiscussion