+ 2

Is there a limit to the amount of characters that you may have in a String variable?

^

17th Dec 2016, 11:46 AM
Thomas Wybenga
2 Answers
0
String is a Char array, so the limit should be the same, the max value of int, 2^31-1. Maybe it's determined by the stack or heap memory.
17th Dec 2016, 12:28 PM
Sheemin
Sheemin - avatar
0
that depends where you declare it in stack or heap
30th Dec 2016, 2:52 PM
Jamal Al-kelani
Jamal Al-kelani - avatar