Consider the following function implemented in C:
The output of invoking printxy (1, 1) is
c
- A0, 0
- B0, 1
- C1, 0
- D1, 1
Programming in CPointers, Multi-Dimensional Arrays, StructuresMCQ1 mark · −1/3 if wrongMedium
1void printxy (int x, int y)
2{
3 int *ptr;
4 x = 0;
5 ptr = &x;
6 y = *ptr;
7 *ptr = 1;
8 printf ("%d, %d", x, y);
9}
10A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.