What is the output of the following program?
#include
using namespace std;
void myFunc(); // Function prototype
int main()
{ int var = 100;
cout << var << endl;
myFunc();
cout << var << endl;
return 0;
}
// Definition of function myFunc
void myFunc()
{ int var = 50;
cout << var << endl;
}
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.