Back To C++ Double Dimensional Arrays Index
//program to input 2x2 matrix (double dimensional array) and display transpose of the matrix #include
#include
void main() { int a[2][2]; int i,j; clrscr(); for(i=0;i<2;i++) { for(j=0;j<2;j++) { cout<<"enter element at ["<
>a[i][j]; } } cout<<"\ndisplaying the matrix\n"; for(i=0;i<2;i++) { for(j=0;j<2;j++) { cout<