Student** db = new Student*[5];
// To allocate it statically:
Student* db[5];
More Related Contents:
- Why is sizeof giving incorrect number of bytes in C++?
- Something went wrong with passing pointer to a function
- What is array to pointer decay?
- How do I use arrays in C++?
- Passing a 2D array to a C++ function
- Return array in a function
- Are arrays Pointers? [duplicate]
- Why does cout print char arrays differently from other arrays?
- Address of an array
- Determine the size of a C++ array programmatically?
- Returning arrays from a function in c++
- C/C++ int[] vs int* (pointers vs. array notation). What is the difference?
- May I take the address of the one-past-the-end element of an array? [duplicate]
- What is the purpose of allocating a specific amount of memory for arrays in C++?
- A pointer to 2d array
- pointer to array c++
- How to get the real and total length of char * (char array)?
- Casting pointer to Array (int* to int[2])
- How to make an array with a dynamic size? General usage of dynamic arrays (maybe pointers too)? [closed]
- Pointer interconvertibility vs having the same address
- Pointer to array with const qualifier in C & C++
- array of pointers as function parameter
- In C/C++, is char* arrayName[][] a pointer to a pointer to a pointer OR a pointer to a pointer?
- Function returning array but main showing garbage [duplicate]
- Difference between passing array, fixed-sized array and base address of array as a function parameter
- how do arrays work internally in c/c++
- difference between pointer to an array and pointer to the first element of an array
- How can a char pointer be initialized with a string (Array of characters) but an int pointer not with an array of integer? [duplicate]
- Polymorphism & Pointers to arrays [duplicate]
- int *array = new int[n]; what is this function actually doing?