0

What is string

satndard input

5th Mar 2018, 4:48 PM
sal ar
sal ar - avatar
2 Answers
+ 1
An array of chars. They are concatenations of letters, digits, symbols.
5th Mar 2018, 5:16 PM
Chris
Chris - avatar
+ 1
A string is simply text, or as @Chris said an array of chars. Strings can be created in 2 ways. First way is to include "<string>" then use the "string" data type. The second way is to make an array with data type char, and set it to your string. Example: char string[] = "I'm a string";
6th Mar 2018, 1:25 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar