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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started