#include int main() { GO int a[][4] = {0, 1, 2, 3, 4, 5, 6, 7}; int (*ptr) [4] = a; printf("%d } %d ", (*ptr)[0], (*ptr)[1]); ++ptr; printf("%d %d\n", (*ptr)[0], (*ptr)[1]); return 0;

icon
Related questions
Question

What will be the output of the C program?

#include<stdio.h>
int main()
{
}
GO
int a[][4] = {0, 1, 2, 3, 4, 5, 6, 7};
int (*ptr) [4] = a;
printf("%d %d ", (*ptr)[0], (*ptr)[1]);
++ptr;
printf("%d %d\n", (*ptr)[0], (*ptr)[1]);
return 0;
A. 0134
B. 0145
C. 0123
D. 0167
Transcribed Image Text:#include<stdio.h> int main() { } GO int a[][4] = {0, 1, 2, 3, 4, 5, 6, 7}; int (*ptr) [4] = a; printf("%d %d ", (*ptr)[0], (*ptr)[1]); ++ptr; printf("%d %d\n", (*ptr)[0], (*ptr)[1]); return 0; A. 0134 B. 0145 C. 0123 D. 0167
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer