Write a void function called calcSum that has three formal parameters of the int data type. The function should accept two integer values to sum in the first two parameters, sum the values, and then return their sum through the third parameter.
?
An example of the call to the function could be as follows, where the variables num1, num2, and sum have been declared to be of the int data type.
?
calcSum(num1, num2, sum);
What will be an ideal response?
void calcSum( int num1, int num2, int &sum){ sum = num1 + num2;}//end of calcSum function
You might also like to view...
The algorithm for a story serves as the basis for creating an initial outline of the sequence of scenes and shots.
Answer the following statement true (T) or false (F)
A ________ chart is used to shows project schedule where each bar represents a project component or task
A) Gantt B) Flow C) Structure D) Venn
A(n) ________ graphic is often included to diagram relationships or processes
Fill in the blank(s) with correct word
When you work in Photoshop, much of your work will involve ____.
a. creating images by combining parts of different image files in a single file b. modifying an image to create a unique composition c. compositing d. all of the above