Question: what is the value of sum2 variable after run the following program? #include using namespace std; int sum1=3; int increment_and_decrement (int&, int); void main()
what is the value of sum2 variable after run the following program? #include using namespace std; int sum1=3; int increment_and_decrement (int&, int); void main() { int sum2=5; increment_and_decrement(sum2, sum1); }//end main int increment_and_decrement (int& sum3,int sum4) { re to search sum4-=2; return sum3+=2; }//end increment B
Step by Step Solution
There are 3 Steps involved in it
The detailed answer for the above question is provided below It look... View full answer
Get step-by-step solutions from verified subject matter experts
