MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> struct N { unsigned int x : 1; unsigned int y : 1; }; int main() { struct N n; n.x = 10; n.y = 20; printf("%d n", n.y); } |
| A. | 0 |
| B. | 1 |
| C. | 10 |
| D. | 20 |
| E. | Garbage value |
| Answer» B. 1 | |