Question: What will be displayed on the console given the following code fragment? int main() { int num1 = 3; int num2 = 4; myFunction (num1,
What will be displayed on the console given the following code fragment? int main() { int num1 = 3; int num2 = 4; myFunction (num1, num2); return 0; } void myFunction (int num1Par, int num2Par) {
num1Par++; num2Par++; ++num1Par; ++num2Par; cout << num1Par << num2Par; }
-Please provide a clear answer and how you got it.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
