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
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.