Question: 1. Create and invoke a function that returns a value. Show an example of how this is done. 2. Create and invoke a function that

1. Create and invoke a function that returns a value. Show an example of how this is done.

2. Create and invoke a function that does not return a value. This called a void function. Show an example of a void function and how it is called from the main program.

3. What is passing by value vs by reference. Show examples.

4. What is a function prototype? Show an example of a function prototype

5. Define what we mean by a variables scope and lifetime. Show an example to help you define this concept.

6. What is a one dimensional array. Show an example of declaring a one dimensional array.

7. Give an example of how you get data into a one dimensional array from the keyboard.

8. Give an example of how to display data from #7 above.

9. Give an example of how to pass a one-dimensional array to a function

10. Define parallel one-dimensional arrays and show an example that demonstrates the use of parallel arrays.

11. What is a twodimensional array. Show an example of declaring a two dimensional array.

12. Give an example of how you get data into a two dimensional array from the keyboard.

13. Give an example of how to display data from #12 above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!