tiannahines4504 tiannahines4504
  • 24-11-2022
  • Computers and Technology
contestada

define a function swaprank() that takes two char parameters passed by reference and swap the values in the two parameters. the function does not return any value. ex: if the input is b c, then the output is: c b

Respuesta :

NomulaHarsh NomulaHarsh
  • 26-11-2022

The program that takes two char parameters passed by reference and swaps the values in the two parameters is shown below.

What is a program?

A computer program is a set of instructions written in a programming language that a computer can execute.

The program is illustrated below:

void Swaprank(char &a1, char &a2)

{

char t = a1;

a1= a2;

a2 = t;

}

Output

B

C

C B

To know more on programming follow this link below:

brainly.com/question/26642771

#SPJ4

Answer Link

Otras preguntas

How do you decide which two numbers is greater when both numbers are negative?
a) Give the definition of sequence of real numbers (Xn). Then give 2 example. b) Give the definition of convergent sequence. Then give 2 example. c) Give the de
Write an equation of the line that passes through the given points. (-4,8) and (2.2)
make x the subject of h=4(x+3y)+2
(200 – 100) ÷ 4 + 5 what's the answer?
Kevin Cook invested $3000 four times a year in an annuity due at Southern Trust Company for a period of 2 years at an interest rate of 8% compounded quarterly.
Wellness is the struggle to keep all the components of health at their best possible levels.Please select the best answer from the choices provided. T F
what is 3 x 14 x 7 (2+7) divided by 2
What is suppression ?
What happened soon after settled groups started to thrive?