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

(yes the sentence is correct or No they are a run on’s or comma splices) Santiago was first in line he got a good seat. YES NO
If your x and y values were (-, -), the resulting point would land in the bottom left of the coordinate plane, which is quadrant
im in need of maijor help this is due soon and i need help ASAP
Decrease 125 by 40% maths assignment
Does the education define the students ability ? plz answer​
Someone please help will mark as brainliest
How would conquering Kalinga help the economy of Asoka's empire?
What is the equation of this graphed line? Enter your answer in slope-intercept form in the box. please i really need help
Read the excerpt from a speech by US Secretary of Education Arne Duncan. What is the speech’s purpose? A. to inform the country what students are learning in t
The dude biked 20% of 100 miles, how many miles has he biked