Back To C++ Double Dimensional Arrays Index
//program to initialize 3x3 matrix and display upper and lower triangle of the matrix (example of double dimensional arrays) #include
#include
void main() { int a[3][3]={ 1,2,3, 4,5,6, 7,8,9 }; int i,j; clrscr(); cout<<"\ndisplaying the matrix\n"; for(i=0;i<3;i++) { for(j=0;j<3;j++) { cout<
=i) { cout<