The program that takes two char parameters passed by reference and swap the values in the two parameters is illustrated below.
A computer program is a sequence of instructions in a programming language for a computer to execute.
The program is illustrated below:
void SwapGrade(char &g1, char &g2)
{
char t = g1;
g1= g2;
g2 = t;
}
Output
B
C
C B
Learn more about program on:
https://brainly.com/question/26642771
#SPJ1