Computer Science, asked by rohitasapure111, 5 months ago

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 keyboardavro
1

Answer:

option a

Explanation:

Answered by ankhidassarma9
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