Answer to Question #274628 in C++ for khan

Question #274628

What is an array of pointers? Is it possible to have negative index in an array? Why is it necessary to give the size of an array in an array declaration?


1
Expert's answer
2021-12-04T10:42:17-0500

An array of pointers is a collection of variables containing pointer type, used to reference memory addresses of other variables


It is not possible to have a negative index in an array

We need to give the size of the array because the complier needs to allocate space in the memory which is not possible without knowing the size.




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment