#include <iostream>
using namespace std;
int main()
{
   int a[3][3] = {1,1,1,1,1,1,1,1,1};
   int b[3][3] = {1,1,1,1,1,1,1,1,1};
   int c[3][3];
   for(int i=1;i<=3;i++)
   {
       for(int j=1;j<=3;j++)
       {
           c[i][j]=a[i][j]+b[i][j];
           cout<<"Element of C"<<i<<j<<"is\t"<<c[i][j]<<endl;
       
       }
  
   
   }
       return 0;
}
In the above code i a am getting correct output till A22 but for above it is throwing me a garbage value.
 
     
     
     
    