what is the data type "string" ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is the data type "string" ?

23rd Jun 2016, 4:32 PM
Egyptian Gamer
Egyptian Gamer - avatar
8 Answers
+ 8
strings can be - a letter: "M" - a character: "#" - a number: "310" - a word: "Hello" - a sentence: "I'm a Filipino." as long as it is enclosed in a double quote, " " that is a string. maybe from that, you can derive your idea on what a string is :)
24th Jun 2016, 1:06 PM
Erwin Mesias
Erwin Mesias - avatar
+ 2
whenever we need to declare or use a collection of alphabet's and digit's then we define them as string keyword . for example ... var a='A'; will store single character A. but string a='Ashish1' will store all these together in a.
24th Jun 2016, 12:42 AM
Farshid Rezaei
Farshid Rezaei - avatar
+ 1
its a seqeunce of chars
24th Jun 2016, 7:54 AM
seyfullah
seyfullah - avatar
+ 1
uhm, strings are collections of one or more characters, or numbers, or symbols, or anything, as long as they are into " "... also they say they are structs...
29th Jun 2016, 2:43 AM
tumor12
+ 1
anything enclosed in " " is a string.
30th Jun 2016, 2:33 PM
Ibra Code
Ibra Code - avatar
0
string is not a keyword....@ashish saini
26th Jun 2016, 2:10 PM
Mukul Kumar
Mukul Kumar - avatar
- 3
a :"name"
24th Jun 2016, 5:10 PM
ashok
ashok - avatar
- 4
whenever we need to declare or use a collection of alphabet's then we define them as string keyword . for example ... var a='A'; will store single character A. but string a='Ashish' will store all these together in a.
23rd Jun 2016, 5:17 PM
Ashish Saini
Ashish Saini - avatar