Declare char reference variable letterRef and initialize letterRef to letterValue. Ex: If the input is M, then then outp

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Declare char reference variable letterRef and initialize letterRef to letterValue. Ex: If the input is M, then then outp

Post by answerhappygod »

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;}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply