GATEverse Practice, past papers & mock tests
GATE 2017 · CS2 - Afternoon
Programming & Data StructuresProgrammingmediumMCQ1 mark
Consider the following function implemented in C:
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
Save your progress

Related Programming & Data Structures PYQs