Consider the following C program.
#include <stdio.h>
struct Ournode {
char x, y, z;
};
int main() {
struct Ournode p = {'1', '0', 'a' + 2};
struct Ournode *q = &p;
printf("%c, %c", *((char *)q + 1), *((char *)q + 2));
return 0;
}
The output of this program is:
0, c
0, a+2
'0', 'a+2'
'0', 'c'
This question is part of this quiz :
C Input and Output,C String,C Quiz - 113 1,GATE CS 2018,C Programming PYQs GATE CS,Pointers GATE CS PYQ Quiz