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”