I came through an interesting observation... The code goes like this:
main()
{
int *num[3] = {{1,2,3},{4,5,6},{7,8,9}};
printf("num = %u &num=%u *num = %d &(*num)=%u",num,&num,*num,&(*num));
}
Output:
num = 3216090596 &num = 3216090596 *num = 1 &(*num)=3216090596
what I was trying to do was to print the address of 1st element of first array(i.e. 1)
what I have inferred (correct me if am wrong), num is an array of integer pointers, so when I initialized the array it stored the starting address of the three arrays.
simply num gives the base address of array num. So what is the address of element 1??