Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What is the exact output of the program below? #include<iostream> using namespac

ID: 3769015 • Letter: W

Question

What is the exact output of the program below?

#include<iostream>

using namespace std;

int n = 10;

void runme1(int k)

{

k *= (float) 99;

}

int runme2(int &x)

{

x = 100;

return 55;

} void runme3(int &x)

{

int n = 10, k = 10;

}

int main()

{

int k = 10;

cout << n++ << endl;

cout << ++k << endl;

cout << n << "+" << k << endl;

cout << n+k << endl; runme1(k);

cout << n << endl;

cout << k << endl;

runme2(k);

cout << n << endl;

cout << k << endl;

runme3(k);

cout << n << endl;

cout << k << endl;

return 0;

}

Explanation / Answer

Below is the output of program:

10

11

11+11

22

11

11

11

100

11

100

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote