const int someheight = 3;
const int somewidth = 5;
int (*array)[somewidth] = new int[someheight][somewidth];
More Related Contents:
- Calling a pointer function in C++
- How do I use arrays in C++?
- Passing a 2D array to a C++ function
- May I treat a 2D array as a contiguous 1D array?
- Converting multidimensional arrays to pointers in c++
- A pointer to 2d array
- How to allocate a 2D array of pointers in C++
- In C/C++, is char* arrayName[][] a pointer to a pointer to a pointer OR a pointer to a pointer?
- Dangling Pointers after Destructor is called
- Weird behavior with OOP and string pointers
- What is the difference between const int*, const int * const, and int const *?
- Is segmentation fault actual undefined behavior when we refer to a non-static data-member
- Are there benefits of passing by pointer over passing by reference in C++?
- One-dimensional access to a multidimensional array: is it well-defined behaviour?
- How to avoid memory leaks when using a vector of pointers to dynamically allocated objects in C++?
- difference between a pointer and reference parameter?
- Pointers in c++ after delete
- Returning a pointer of a local variable C++
- Can I use if (pointer) instead of if (pointer != NULL)?
- Is storing an invalid pointer automatically undefined behavior?
- How to know if a pointer points to the heap or the stack?
- Why does std::cout convert volatile pointers to bool?
- Cast pointer to member function to normal pointer
- C++ 2 dimensional array with variable size rows
- Declaring type of pointers?
- What is the safe way to fill multidimensional array using std::fill?
- What does ‘**’ mean in C?
- What is the proper way to return an object from a C++ function?
- Assign a string literal to a char* [duplicate]
- Both asterisk and ampersand in a parameter