Question PRG-C-0049
MediumWhat is the output of this program?
#include <stdio.h>
int main() {
struct P { int x; int y; } a = {1, 2}, b;
b = a;
b.x = 9;
printf("%d %d", a.x, b.x);
return 0;
}
- A.
Compilation error
- B.
9 9
- C.
Sign up free to see the answer and a step-by-step explanation.