Programming question23


#1

main(){
static int n[3][3] = {2,4,3,6,8,5,3,5,1};
Int i,j;
for(i=2;i>=0;i–){
for (j=2;j>=0;j–){
printf(“%d ”,((n+i)+j));
}
} What will be the output of the program?


#2

here n is base address of 2-d matrix n[I][J]. adding ‘x’ to n(address)= n+J*sizeof(int)*x
here answer does not depends on content of array. it only depends on i and J