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