#include<stdio.h> #include<conio.h> void main() { clrscr(); int arr[3][4][2] = { { {1, 2}, {7, 4}, {9, 5}, {2, 3} }, { {2, 9}, {5, 1}, {1, 5}, {3, 2} }, { {1, 3}, {8, 4}, {2, 1}, {2, 9} } }; printf("arr[0][0][0] = %d\n",arr[0][0][0]); printf("arr[0][2][1] = %d\n",arr[0][2][1]); printf("arr[2][3][1] = %d\n",arr[2][3][1]); getch(); }
C program to demonstrate 3 Dimensional array.
Reviewed by
on
December 25, 2019
Rating:
No comments: