Question: What will be displayed on the console given the following code fragment? int main() { int num1 = 18; int num2 = 2; cout <

What will be displayed on the console given the following code fragment? int main() { int num1 = 18; int num2 = 2; cout << modIt(num1, num2); return 0; } int modIt(int num1Par, int num2Par) { return num1Par % num2Par; }

-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!