Question: 5. Four elements of array are initialized for the following statement: double Number [8] = {2,4,7,8};. What would be the value of the remaining elements?
5. Four elements of array are initialized for the following statement:
double Number [8] = {2,4,7,8};. What would be the value of the remaining elements?
6. Give the size of array for the following statement: int Number [8];
7. Give the size of the array for the statement int Number [ ] = { 1,3,5,7,9,8,6};
8. Can an arrays name be treated as a pointer? Why or why not?
9. Given the statement int size = 10, Number [size], write a function to read ten integer numbers and store them in an array.
10. For question 9, what are the inputs and informal parameters of the function?
11. For question 9, did you use the keyword return? Explain your answer.
12. What is a constant array?
13. When do you use a constant array?
14. What is the number of iterations of the inner loop of a 4 * 5 array?
15. What is the number of iterations of the inner loop of a 4 * 5 * 6 * 10 array?
16. What is the number of iterations of the outer loop of a 5 * 8 array?
17. Given:
double Num_1 [6] = {2,4,6,8,2,3};
double Num_2 [6}; write a function to copy the content of array Num_1 into array Num_2.
18. For question number 17, write a function to compare the contents of two arrays.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
