The problem is in the following code :
main(){
int arr[2][2] = {1,2,3,4};
int **a;
a = arr;
printf("Value of a+1 -> %d",*(a+1));
}
This code is printing value 2 whether we define int **a or int ***a or int ****a ??????
Can anyone explain me this.
I hv tested this code on Linux as well as Turbo C compiler for DOS.
TIA
main(){
int arr[2][2] = {1,2,3,4};
int **a;
a = arr;
printf("Value of a+1 -> %d",*(a+1));
}
This code is printing value 2 whether we define int **a or int ***a or int ****a ??????
Can anyone explain me this.
I hv tested this code on Linux as well as Turbo C compiler for DOS.
TIA