2,327 views
1 1 vote
int main()
{
    int array[5][5];
    printf("%d",( (array == *array) && (*array == array[0]) ));
    return 0;    
}

Here I understand *array=*(array+0)=array[0]

but how is array=*array?

*array contains the address of the 0th element of 0th 1-D array whereas array contains the address of 0th 1-D array , which are not same according to my knowledge. Then why is the output 1 here?

Can someone pls help me out here..

Please log in or register to answer this question.

Position:
Show:

No related questions found