If we define a 2-D array on the stack. It will use a contiguous section of memory to store. For example
double x[4][9];
The OS will allocate a contiguous section memory to store the 36 double in this 2-D array.
This question is worth trying before the final
This is not that hard. Same as how you derive T(n)=2T(n/2)+1T(n)=2T(n/2)+1T(n)=2T(n/2)+1.
Last updated 1 year ago