In this lesson , you learned how to declare and assign strings , and how to join strings with the concatenation operator 在本課中,您學習了如何聲明字符串并給字符串賦值,以及如何使用串連運算符
The fourth statement concatenates or pastes together the two character stringswhich happen to consist of digitsby the concatenation operator 第四條語句通過并置操作符| |將兩個字符串(恰好是由數(shù)字組成的字符串)并置或粘貼在一起。
The arithmetic and concatenation operators have the order of precedence described below , and all have higher precedence than the comparison , logical , and bitwise operators 算術(shù)運算符和串聯(lián)運算符具有下述優(yōu)先級順序,它們的優(yōu)先級均高于比較運算符、邏輯運算符和位運算符。
All comparison operators have equal precedence , and all have higher precedence than the logical and bitwise operators , but lower precedence than the arithmetic and concatenation operators 比較運算符具有相同的優(yōu)先級,它們的優(yōu)先級均高于邏輯運算符和位運算符,但低于算術(shù)運算符和串聯(lián)運算符。