Answer to Question #175106 in C++ for KAVIN MUKILAN

Question #175106

The kids Ram and Anandh are using magic numbers. For example, Ram magic number is 4 and Anandh magic number is 6. The kids exchange their magic number and display the Ram magic number is 6 and Anandh magic number is 4. Implement the above logic using function


1
Expert's answer
2021-03-24T04:00:07-0400
void exchange(int &fir, int &sec)
{
    int tmp = fir;
    fir = sec;
    sec = tmp;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS