Question: C++ only: The pseudocode below shows a code segment that starts at function1. Assume they are all void functions . function 1 creates a variable
C++ only:
The pseudocode below shows a code segment that starts at function1. Assume they are all void functions.
function 1 creates a variable of value 5 passes the variable to function2 prints the variable function2 (receives the variable as a reference) passes the variable to function3 increments the variable by 1 function3 (receives the variable as a value) increments the variable by 2
After running the code segment, what is the value that will be printed?
Choose answer:
5
6
7
8
9
Cannot be determined
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
