C | Advanced Pointer | Question 8
#include <stdio.h> int main() { int a[][3] = {1, 2, 3, 4, 5, 6}; int (*ptr)[3] = a; printf("%d %d ", (*ptr)[1], (*ptr)[2]); ++ptr; printf("%d %d\n", (*ptr)[1], (*ptr)[2]); return 0; } |
chevron_right
filter_none
(A) 2 3 5 6
(B) 2 3 4 5
(C) 4 5 0 0
(D) none of the above
Answer: (A)
Explanation:
Quiz of this Question
Recommended Posts:
- C | Advanced Pointer | Question 2
- C | Advanced Pointer | Question 10
- C | Advanced Pointer | Question 9
- C | Advanced Pointer | Question 7
- C | Advanced Pointer | Question 1
- C | Advanced Pointer | Question 5
- C | Advanced Pointer | Question 3
- C | Advanced Pointer | Question 4
- Double Pointer (Pointer to Pointer) in C
- C++ | this pointer | Question 1
- C++ | this pointer | Question 3
- C++ | this pointer | Question 4
- C++ | this pointer | Question 5
- C++ | this pointer | Question 2
- What is a Pointer to a Null pointer



