GATE Computer Science (CS) 2017 Shift 2 Solved Paper

© examsiri.com
Question : 24 of 65
 
Marks: +1, -0
Consider the following function implemented in C:
void printxy(int x, int y) {
int *ptr;
x = 0;
ptr = &x;
y = *ptr;
*ptr = 1;
printf ("%d, %d", x, y) ;
}

The output of invoking printxy(1, 1) is
Go to Question: