Quiz 1
- Write a C (or C++) function for adding two numbers and
returning the result. Then indicate what type of parameters
your function has (IN or OUT).
- Write a C++ function for swapping two integer values. Then indicate
what type of parameters your function has (IN or OUT).
- Write a C++ function for reading an integer value from the standard input
into a variable n. Then indicate what type of parameters your
function has (IN or OUT).
- Write a C++ function for reading n integer values
from the standard input into an array
A, where n is a value passed on when the function
is called. Indicate what type of parameters your function has.