Computer Science, asked by Maharaj44, 11 months ago

we can perform operation like subtraction, multiplication or division on a text string. is it true or false​

Answers

Answered by luckykumar564347
1

Answer:

true, here is your answer

Answered by lovingheart
1

Among all the other arithmetic operations like addition, subtraction, multiplication and division, string accepts only addition operation which is nothing but concatenation.

Eg.

String c1 = “Even and”

String c2 = “Odd”

Print c1 + c2

The output will be “Even and Odd”. All the other arithmetic operations are invalid. String does not accepts other kind of data types even for concatenation.

Eg.

string s1 = “Even”;

int x = 1

Print s1 + x;  // invalid operation

Similar questions