C Programming - Pointers - Discussion
Discussion Forum : Pointers - Point Out Correct Statements (Q.No. 6)
6.
Which of the statements is correct about the program?
#include<stdio.h>
int main()
{
int arr[3][3] = {1, 2, 3, 4};
printf("%d\n", *(*(*(arr))));
return 0;
}
Discussion:
27 comments Page 3 of 3.
Diya said:
9 years ago
Thanks to all for the clear explanation.
Santhosh said:
9 years ago
Thanks @Praful.
Srikanth said:
9 years ago
Now I get it. Thanks to all.
Sai said:
9 years ago
Thanks @Praful.
Uts said:
8 years ago
Thanks @Wikiok.
Coder x said:
8 years ago
We use triple for a 3d array but arr[3][3] is a 2d array.
Deepak said:
7 years ago
Thanks @Praful.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers