67 154
Assignments Done
99,4%
Successfully Done
In November 2018

Answer to Question #40860 in C++ for Mary Lohr

Question #40860
A function Swap_Char() that interchanges the values of two characters. The
function has two arguments,both of which are addresses of characters.The func-
tion does not return a value.
Expert's answer
void Swap_Char(char& c1, char& c2)
{
char tmp = c1;
c1 = c2;
c2 = 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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions