Among these expressions, which is(are) of type String?
O a. "0"
O b. "ab" + "cd"
O col
A
O d. Both (A) and (B) above
O e. (A), (B) and (C) above.
Answers
Answered by
1
Answer:
option a
Explanation:
Answered by
0
Answer:
Both (A) "0" and (B) "ab" + "cd" above.
Explanation:
- The String data type is used to store character or a sequence of characters.
- Values of a String variable must be surrounded by double quotes like,
string ch = "Hello";
- The + operator can be used between two or more strings to add them together to make a new string. This is called concatenation of Strings.
- Concatenation is the process of appending one string to the end of another string. We can concatenate many strings by using the + operator like:
string fName = "John ";
string lName = "Doe";
string fullname = fName + lName;
- "ab" + "cd" is the concatenation of two strings "ab" and "cd".
Similar questions