Question: Given the array declarations, fill in the following table describing the element size, the total size, and the address of element i for each of
Given the array declarations, fill in the following table describing the element size, the total size, and the address of element i for each of these arrays (see practice problem 3.36 for reference).
| Array declaration | Element size | Total size | Start address | Element i | |
|---|---|---|---|---|---|
| (a) | char r[4]; | x_r | |||
| (b) | char *s[4]; | x_s | |||
| (c) | short t[5]; | x_t | |||
| (d) | short *u[5]; | x_u | |||
| (e) | short **v[3]; | x_v | |||
| (f) | int w[4]; | x_w | |||
| (g) | long *x[5]; | x_x | |||
| (h) | double *y[6]; | x_y |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
