Q3 How can a dynamic array of pointers(to integers) of size 100 can be
created using new in C++?
what does pointer to integer mean? I am not able to understand the question.pls explain
Question 3 mcq pointers
hi @jatin_wadhwa you can use the syntax
int *arr = new int[100];
Arrays in C++ are basically just pointers only. You can check that by doing a practical example. Let’s say you have an array like int a[100]; if you do cout << a this will print an address, thus proving that it is nothing but a pointer.
Please let me know if you have any further doubts otherwise mark the doubt as resolved.