C Programming - Structures, Unions, Enums - Discussion
Discussion Forum : Structures, Unions, Enums - Find Output of Program (Q.No. 10)
10.
What will be the output of the program ?
#include<stdio.h>
int main()
{
struct byte
{
int one:1;
};
struct byte var = {1};
printf("%d\n", var.one);
return 0;
}
Discussion:
29 comments Page 3 of 3.
Uma said:
1 decade ago
Can any one explain this concept briefly?
Shrihari said:
8 years ago
Can anyone explain me. How -1?
Prasanna said:
1 decade ago
Can you explain clearly?
Sandeep said:
1 decade ago
Thanks prashant.
Deepa said:
1 decade ago
Thanks sundar.
Parimal said:
1 decade ago
Thanks sundar.
Vikas said:
1 decade ago
Thanks Sundar.
Abhinav said:
1 decade ago
Thanks sundar.
Ganesh said:
1 decade ago
Thanks sundar
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers