What is the output of the following program? (11) #include using namespace std; void trackStaticVar(int& x); int main() { int temp = 1; for (int count = 1; count trackStaticVar(temp); return...




What is the output of the following program? (11)


#include




using namespace std;


void trackStaticVar(int& x);


int main()


{



int temp = 1;



for (int count = 1; count <>



trackStaticVar(temp);



return 0;


}


void trackStaticVar(int& x)


{



static int stVar = 1;



int u = 3;



if (x >= u)



stVar = 2 * stVar;



else



stVar = 3 * stVar;



x++;



cout


}





"stvar=" <><>


}




>






May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here