Question PRG-C-0073
HardWhat is the output of this program?
#include <stdio.h>
int main() {
struct S { int a; char b[4]; } s = {7, "abc"};
struct S t = s;
t.b[0] = 'z';
printf("%s %s %d", s.b, t.b, t.a);
return 0;
}
- A.
abc zbc 0
- B.
abc zbc 7
- C.
Sign up free to see the answer and a step-by-step explanation.