Declare char reference variable letterRef and initialize letterRef to letterValue. Ex: If the input is M, then then outp
Posted: Fri Jul 01, 2022 5:46 am
Declare char reference variable letterRef and initializeletterRef to letterValue.
Ex: If the input is M, then then output is:
Referenced letter is M.
Here is the template of the problem, please use it:
#include <iostream>using namespace std;
int main() { char letterValue;
/* Your code goes here */
cin >> letterValue; cout << "Referenced letter is " <<letterRef << "." << endl;
return 0;}
Ex: If the input is M, then then output is:
Referenced letter is M.
Here is the template of the problem, please use it:
#include <iostream>using namespace std;
int main() { char letterValue;
/* Your code goes here */
cin >> letterValue; cout << "Referenced letter is " <<letterRef << "." << endl;
return 0;}