Question: (a) For arrays or array-like data type(s) supported by your language, where will the arrays be allocated (i.e. stack, heap, or either)? (b) What categories
(a) For arrays or array-like data type(s) supported by your language, where will the arrays be allocated (i.e. stack, heap, or either)?
(b) What categories of arrays (static, fixed stack dynamic, fixed heap dynamic, heap dynamic) the language support? For each category supported, write a line of code to give an example.
(c) Can array subscripts be negative (i.e. data[-5])? Do you think its a good idea to use negative subscripts? Justify briefly.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
