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.
1
Expert's answer
2014-04-01T08:56:59-0400
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 the first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS