Q. What is the output of this code?
Code:struct s {
int a;
char b;
};
int main() {
struct s x = {5, 'A'};
printf("%d %c", x.a, x.b);
}
β
Correct Answer: (A)
5 A
Explanation: Correct member values are printed using structure access.