GATE Computer Science (CS) 2018 Shift 1 Solved Paper
© examsiri.com
Question : 18 of 65
Marks:
+1,
-0
Consider the following C program
The output of this program is :
#include
Struct ournode {
Char x, y, z;
};
int main() {
struct ournode p = {‘1’, ‘0’, ‘a’ + 2};
struct ournode *p = &q;
printf(“%c, %c”, *((char*) q + 1), *((char*) q + 2));
return 0;
} The output of this program is :
Go to Question: