Question 96
What is the output value printed by the program?
C
#include <stdio.h>
struct Val {
int x;
};
int main(void) {
struct Val v = {192};
struct Val *p = &v;
printf("%d", p->x);
return 0;
}Detailed Solution
Pointer 'p' targets structure 'v'. Dereferencing via 'p->x' evaluates to 192.
✓ Saved