Define Arrays and Strings.
What will be an ideal response?
1. Introduce the concept, declaration, and use of one-dimensional arrays with elements of type int, char, or double.
2. Discuss the use of subscripted variables to manipulate array elements.
3. Describe how to pass single array elements and whole arrays as actual arguments of functions.
4. Present the use of the counting for loop to access array elements sequentially.
5. Discuss the representation of an array as the address of its initial element.
6. Introduce the declaration and use of arrays as function input and output parameters.
7. Introduce the implementation of varying-length Cstrings as one-dimensional arrays of char with a special character marking the end of each string.
8. Review basic string operations such as string I/O and string assignment, and introduce string length and string comparison.
9. Discuss the representation of varying-length arrays as objects, with both automatic and dynamic allocation of array components.
You might also like to view...
What are some benefits to using a layered model to describe network protocols and operations?
What will be an ideal response?
A throw statement can throw
a. an integer exception b. a float exception c. a bool exception d. an exception of any data type e. all of the above f. none of the above