C-Programming-data-structure || 2017 SET 2 || MCQ || 2-mark || Module 1: C Programming

Last Updated :
Discuss
Comments

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 2017 SET 2 || MCQ || 2-mark



0, 0

0 ,1

1, 0

1, 1

Share your thoughts in the comments
Article Tags :