Take a look at this piece of code: -
#include<stdio.h> int main() { int arr[2][2]={1,2,3,4}; printf("%d %u %u",**arr,*arr,arr); return 0; }
When I compiled and executed this program, I got the same value for arr and * arr, which is the starting address of the 2 d array. For example: - 1 3214506 3214506
My question is: why does dereferencing arr (* arr) not print the value stored at the address contained in arr?
source share