Can we assign more than one pointer?

how to assign more than one pointer. for example i need to print a two dimensional array in wave format so how to use more that one pointer?

Hey @Anku47 int **arr = new int [n] is a way to declare 2 D array dynamically. As arr[n][n] is static allocation whereas int **arr = new int [n] is dynamic allocation.

Here arr[i] is a pointer pointing to array of n indexes .
But i will suggest you to print wave format of array using variables, else it will be tough for you to write it’s code.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.