We consider ptr as a 2D matrix. Whereas, number of rows would be fixed butmake number of columns variables. To do this, instead of using arrays of fixed column sizeallocated on stack, you will make each element of array to have nColumns (passed asargument to the function) elements and store them on heap using new operator.
You are not allowed to access the array using original variable name.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here