Back To C++ Double Dimensional Arrays Index
//program to initialize 3x3 matrix and display both the diagonals #include
#include
void main() { clrscr(); int a[3][3]={ 2,4,5, 67,78,90, 12,23,45 }; int i,j; cout<<"displaying the matrix \n"; for(i=0;i<3;i++) { for(j=0;j<3;j++) { cout<