Question: What are the contents of string s after executing the following statements. string s = abc; string t = cde; s += s + t[1]
What are the contents of string s after executing the following statements.
string s = "abc";
string t = "cde";
s += s + t[1] + s;
Step by Step Solution
3.45 Rating (158 Votes )
There are 3 Steps involved in it
ANSWER Option A abcabcdabc EXPLANATION Given s abc a b c 0 1 2 Given t cde c d e 0 ... View full answer
Get step-by-step solutions from verified subject matter experts
