0 votes
by (140 points)
How do you declare a pointer to an array of pointers to INT?

1 Answer

0 votes
by (1.3k points)
p = arr; // Points to the whole array arr. p: is pointer to 0th element of the array arr, while ptr is a pointer that points to the whole array arr. The base type of p is int while base type of ptr is 'an array of 5 integers'.Apr 3, 2020');})();(function(){window.jsl.dh('_rneNYNPKMJKy0PEP84-E2AI47','
');})();(function(){window.jsl.dh('13','
In C++, Pointers are variables that hold addresses of other variables. Not only can a pointer store the address of a single variable, it can also store the address of cells of an array.

Related questions

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
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
0 votes
1 answer
0 votes
1 answer
...