
Finding the size of strings
Hey,
I'm trying to figure out the size of a string -- in other words, I want to know how many characters it contains. So the string containing "Hello", for example, should give me "5".
So this is what I tried: the code below was supposed to display how long the string was, but I never got anything other than 20 (I tried different string sizes, different variable names, etc.). Here's my code:
Any ideas?
Thx,