0

Which is correct and why?

t [2]=&t [2][0] or &t[2]=&t [2][0]

26th Dec 2019, 12:47 PM
Namash Aggarwal
Namash Aggarwal - avatar
1 Respuesta
+ 2
Namash Aggarwal seems second is right to me that is &t[2] = &t[2][0] Looking into the indices you have used on t variable, it seems it is two dimensional array.... Now if you recall that array name represents first element of array, we can say below: t[2] is same as t[2][0] Now apply address of operator on left side and right side makes second option in your question as correct option..
27th Dec 2019, 9:33 AM
Ketan Lalcheta
Ketan Lalcheta - avatar