Mark Following Two Statements True False Suppose String Str Abcd Statement Str 1 Value St Q37052590

Mark the following two statements true orfalse:

Suppose string str = “ABCD”;. After the statement str[1] = ‘a’;,the value of str is “aBCD”.
Suppose string str = “abcd”;. After the statement str = str +“ABCD”;, the value of str is “ABCD”.


Answer


1) False. the value of str is “AaCD”2) False. the value of str is “abcdABCD”

color{blue}Please;let;me;know;if;you;have;any;doubts Please;upvote;this;answer.;;Thanks!!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.