home
Learn
screen_rotation
#include <stdio.h> #include <conio.h> void main(){ int arr[2][3] = { {10, 20, 30}, {70, 60, 50} }; int i,j; clrscr(); printf("\n This is 2-d array program."); for(i=0;i<2;i++){ for(j=0;j<3;j++){ printf("\n value of arr[%d][%d] = %d",i,j,arr[i][j]); } } getch(); }
Program Output
This is 2-d array program. value of arr[0][0] = 10 value of arr[0][1] = 20 value of arr[0][2] = 30 value of arr[1][0] = 70 value of arr[1][1] = 60 value of arr[1][2] = 50