Identify global variables, local variables, and static local variables in the following program. What will be the output of the code?
#includeusing namespace std;int j = 40 ;void p(){ int i = 5 ; static int j = 5 ; i++; j++; cout << "i is " << i << end⌉; cout << "j is " << j << end⌉;}int main(){ p(); p();}
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.