Hello. I recently started to learn c++ again and started from the beginning. I've been trying to create a 2 dimentional array that would allocate memory during the runtime and came up with something like this:
array = new int* ;
I'm not even sure what I exactly created, but seems to work as a 2 dimentional array.
I tried to send this array as an argument to a void function i created but the compiller gives me an error. What are the right methods?