Yes. Note that you could also use a one dimensional array to represent a multi-dimensional array, upon which you would calculate the index offsets yourself.Quote:
that means to put a for loop on the 2nd pointer and another for loop for the 3rd pointer and another for loop for the nth pointer yes?
No, at least not for the courses taught by Andrew Koenig and Barbara Moo, but then they teach vectors before dynamically allocated arrays.Quote:
I would have thought C would be a pre-requisite for a C++ course?
EDIT:
Oh, and I was taught C++ without a C pre-requisite, though they taught me the C legacy of C++ (but with I/O streams) before the C++ specific stuff, somewhat like sokermaniac's professor's approach.