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);

cout << (num1 * num2); return 0; } void myFunction (int num1Par, int num2Par) { cout << num1Par << num2Par; }

A) 1234 B) 3412 C) 1423 D) 2345

- Please provide a clear answer and how you got it thanks..

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!