[Solved] : Question 143264

ASSIGNMENTS:
Question 1:
Consider the following C++ code: string str1;
string str2;
char ch;
cin >> str1;
str2 = str1;
cin >> ch;
str2[0] = ch;
cout << str1 << ” –> ” << str2 << endl;
Sample Output: Program 3
Answer the following questions.
a. What is the output if the input is Hello J? b. What is the output if the input is Bingo R? c. What is the output if the input is Sunny B?


Expert Answer


Answer to : Question 143264

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?