String []
Description
Allows you access to the individual characters of a String.
Syntax
char thisChar = myString1[n]
Parameter Values
- thisChar: Allowed data types: char.
- myString1: Allowed data types: String.
- n: a numeric variable.
Return Values
- The nth char of the String. Same as charAt().
※ 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 + (concatenation)
- Language : String != (different from)
- 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 |
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.
Additionally, some links direct to products from our own brand, DIYables.