GATEverse Practice, past papers & mock tests
GATE 2018
Programming & Data StructuresProgrammingeasyMCQ1 mark
Consider the following C program:
c
#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:
Save your progress

Related Programming & Data Structures PYQs