0

String = Variable?

Is a string like a variable?

11th Jul 2017, 12:17 AM
A_Coders
A_Coders - avatar
4 Answers
+ 1
Jojo, don't forget the string end character '\0' char s[] = {'H','e','l','l','o','!','\0'}
11th Jul 2017, 12:19 PM
Andrés04_ve
Andrés04_ve - avatar
0
yep, string is a variable type
11th Jul 2017, 12:26 AM
Andrés04_ve
Andrés04_ve - avatar
- 1
A string is an array of type char. string a="Hi!"; same as : char b[]={'H', 'i', '!', '\0'}; If you want more informations ask
11th Jul 2017, 7:03 AM
Jojo
- 1
Ow, of course !
11th Jul 2017, 2:26 PM
Jojo