Multidimensional array as a flat array problem
问题 I'm looking at two lines of code that somebody wrote and there is an exception in the 2nd one, however I don't understand why. char** array = (char**) new char [2] [6]; std_strlprintf(array[0],6,"[%d]", num); std_strlprintf is a Brew function that writes formatted output to a string. (num is an integral value which is 0) Why is there an exception with this code, what's wrong with accessing the first elelment of the array as buff[0]? EDIT: sorry there was a typo in my initial posting. Its