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 the printxy(1,1) is
0,0
0,1
1,0
1,1
This question is part of this quiz :
C Pointer Basics,GATE-CS-2017 (Set 2),C Programming PYQs GATE CS,Pointers GATE CS PYQ Quiz