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? 

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

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below It look... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!