

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> struct MansWear { int size1; int size2; }; struct WomensWear { int size1; int size2; }; void fun(struct MansWear); int main() { struct WomensWear WW = {39, 42}; fun(WW); } void fun(struct MansWear MW) { printf("%d n", MW.size1); } |
A. | Compilation Error |
B. | 39 |
C. | 42 |
D. | Garbage value |
E. | None of these |
Answer» B. 39 | |