Mo Tu We Th Fr Sa Su
Memo No.
Date
1. Declare a short INT array max that is 20 elements long.
To declare a short INT array named "max" that is 20 elements long, you can use the following syntax in a C++ programming language:
short int max[20];
This will create an array with 20 elements, each of which can hold a value between -32,768 and 32,767. The array can be accessed using index numbers from 0 to 19, i.e., max[0] to max[19].
Note that the keyword "short" is used to indicate that the array elements will be stored using 16 bits of memory, which is half the size of a standard int variable (which uses 32 bits of memory). This can be useful in situations where memory usage is a concern and smaller data types can be used without sacrificing program functionality.