+ 2

"Hola" is a String of 5 characters? Why?

The explanation, in Spanish, says that "Hola" is a String of 5 characters, but Hola only has 4 letters... Am I missing something or it was just a typo?

6th Mar 2018, 1:42 PM
Ruru Kawaii
Ruru Kawaii - avatar
2 Answers
+ 10
h-1 0-2 l-3 a-4 last is null character so it is having 5 characters
6th Mar 2018, 1:49 PM
gnaneswari kolathuru
gnaneswari kolathuru - avatar
+ 2
I see, thank you!!
6th Mar 2018, 1:56 PM
Ruru Kawaii
Ruru Kawaii - avatar