in which cases should I use the keyword new to allocate array when the size is a variable? I am reading this code: https://github.com/Hawstein/cracking-the-coding-interview/blob/master/1.7.cpp
In the function zero(), why row[m] and col[n] declarations doesn't cause errors? The m and n are function variables.
Thanks