If I were to access the char * array inside a string, do the arrays include spaces?
Example.
String s = "1 3";
Would s[1] be " " or 3?
Thank you!
Yes, it includes spaces. s[1] is ' '.
Spaces are characters as any other.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With