A
Q. What will be output of the following c code?
Code:
struct marks{
int p:3;
int c:3;
int m:2;
};
void main(){
struct marks s={2,-6,5};
printf(“%d %d %d”,s.p,s.c,s.m);
}
int p:3;
int c:3;
int m:2;
};
void main(){
struct marks s={2,-6,5};
printf(“%d %d %d”,s.p,s.c,s.m);
}
- Correct Answer - Option(B)
- Views: 28
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.