0

Array of char is determined end by '\0' char. How about the string?

Char vs string

21st Feb 2017, 12:11 PM
Liêu Tấ T
Liêu Tấ T - avatar
2 Respuestas
+ 1
string is a wrapper for char array (with few additional methods). So it's the same.
21st Feb 2017, 1:37 PM
Jakub Stasiak
Jakub Stasiak - avatar
0
So u mean the last char of the string is '\0'. Is it right Jakuc
21st Feb 2017, 1:53 PM
Liêu Tấ T
Liêu Tấ T - avatar