171k views
1 vote
Assuming that t is an array and tPtr is a pointer to that array, which expression refers to the address of element 3 of the array?

User Malloc
by
5.6k points

1 Answer

3 votes
According to the basics of C++ syntax, &t[ 3 ] refers to the address of element 3 of the array given above. The array can be imagined like a box with some stuff. This stuff is the numbers which should be in "[ ... ]" with name of the array written before and "&".
User Bonnie Varghese
by
6.2k points