+ 1
what is the data type "string" ?
8 Respuestas
+ 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 :)
+ 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.
+ 1
its a seqeunce of chars
+ 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...
+ 1
anything enclosed in " " is a string.
0
string is not a keyword....@ashish saini
- 3
a :"name"
- 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.