What is the output of the following program?
#include
using namespace std;
void showVar(); // Function prototype
int main()
{ for (int count = 0; count < 10; count++)
showVar();
return 0;
}
// Definition of function showVar
void showVar()
{ static int var = 10;
cout << var << endl;
var++;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.