Computer Science, asked by mavi46, 10 months ago

Differentiate between the function of '+' operator when used with integer and string values. Plz help me it is urgent. Plz.

Answers

Answered by amannishad0512p5zxh6
2

'+' is used to add numbers when used with integers

e.g. 2+5=7

'+' is used to concate(paste) two strings.

e.g. When you print ("Aman"+"mavi");

Output :- Amanmavi

For more doubts follow me on YouTube, Instagram and brainly(check my profile for more details).

Similar questions