0 votes
by (140 points)
How do you declare an array pointer in C++?

1 Answer

0 votes
by (2.1k points)
C++ separates the issue of allocating an array from the issue of using an array. Once you have an array, what you actually have is a pointer to the first thing in the array. C++ does not distinguish between a pointer to one variable and a pointer to a whole array of variables!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 14, 2021 by pointers (160 points)
0 votes
1 answer
0 votes
1 answer
asked Jun 26, 2021 by pointertoarray (120 points)
0 votes
1 answer
asked May 26, 2021 by arraysize (120 points)
0 votes
1 answer
asked May 23, 2021 by program (420 points)
0 votes
1 answer
asked May 21, 2021 by program (420 points)
0 votes
1 answer
...