String +
Description
Combines, or concatenates two Strings into one new String. The second String is appended to the first, and the result is placed in a new String. Works the same as string.concat().
Syntax
myString3 = myString1 + myString2
Parameter Values
- myString1: a String variable.
- myString2: a String variable.
- myString3: a String variable.
Return Values
- New String that is the combination of the original two Strings.
※ NOTES AND WARNINGS:
If the string is modified, it is highly recommended using String.reserve() to prevent the memory fragmentation issue
See Also
- Language : Arduino - String
- Language : String += (append)
- Language : String == (comparison)
- Language : String != (different from)
- Language : String [] (element access)
- Language : String > (greater than)
- Language : String >= (greater than or equal to)
- Language : String < (less than)
- Language : String ≤ (less than or equal to)
- Example : String Tutorials
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |
Additionally, some links direct to products from our own brand, DIYables.