@anu, here array n is a pointer but it will be pointing to the first element which is an array of 3 elements.
See this question, https://gateoverflow.in/136596/pointers
Also, here we explicitly assign values to the array. So it will not consist all of its element as 0.
@Hemant
the first element is " *n " so it should give the value of the 1st element of the array. If only " n " will be there then it will print its address!
Tell me If I am wrong!
Thanks in advance.
I am getting garbage, garbage, 1.
it is *n, which will return address,
if it would be **n, then the first value printed would be 2
64.3k questions
77.9k answers
244k comments
80.0k users