COMPLETE SOLUTIONS VERIFIED LATEST UPDATE
Which statements indicate why it is important to understand dynamic multi-
dimensional "arrays of arrays"?
1. This is the only way to create "ragged or jagged" arrays inC/C++. It might be wise to
keep a parallel array of each row's size.
2. Dynamic allocation requires multiple pointers and each pointer can 'point' to it's own
array.
3. If we get that each row is an independent array, it makes the idea of passing single
rows or other subsections of the multi-dimensional array to functions easier.
4. Each row is independently created at run-time.
C/C++ is "perfectly happy" to allow the programmer to walk outside the bounds of
an array. An error can/will eventually occur when you interact with memory that
the Memory Manager has reserved.
true
When creating a multi-dimensional array during compile time(on stack RAM), it is
possible to create a "ragged array" -which is a multi-row array where the rows are
not the same length.
false
Given the declaration:
char a[] = "Hello";