0 votes
in Swift by

Which among the following is not true with respect to concatenation of strings in Swift?

A

Concatenate strings with the + operator to produce a new string

B

Can append a single character to a mutable String

C

Can append multiple characters to a mutable String

D

concatenation of strings is possible using += only not by using append method.

1 Answer

0 votes
by

Answer: D

Reason:  In swift, we can concatenate strings with the + operator to produce a new string.To a mutable String , we can append single character and multiple characters using += operator or an append method

Related questions

0 votes
asked Nov 6, 2022 in Swift by rajeshsharma
0 votes
asked Nov 8, 2022 in Swift by SakshiSharma
...