string operators precedence
Answers
Answered by
9
Answer:
String concatenation and addition have the same precedence. Since they are left-associative, the operators are evaluated left-to-right. The parentheses in the second statement ensures that the second + operator performs addition instead of string concatenation.
Answered by
100
┏─━─━─━─━∞◆∞━─━─━─━─┓
✭✮ӇЄƦЄ ƖƧ ƳƠƲƦ ƛƝƧƜЄƦ✮✭
┗─━─━─━─━∞◆∞━─━─━─━─┛
Answer:
String concatenation and addition have the same precedence. Since they are left-associative, the operators are evaluated left-to-right. The parentheses in the second statement ensures that the second + operator performs addition instead of string concatenation.
Similar questions
Math,
2 months ago
India Languages,
2 months ago
Math,
2 months ago
Science,
5 months ago
Computer Science,
5 months ago
Business Studies,
11 months ago
Physics,
11 months ago