0

Could somebody explain what exactly a string is.

23rd Jun 2017, 4:47 PM
Adam Syed
Adam Syed - avatar
10 Réponses
+ 2
A string is an array of chars
23rd Jun 2017, 4:49 PM
clement
clement - avatar
+ 2
simply string is text
23rd Jun 2017, 4:55 PM
Hetbo.net
Hetbo.net - avatar
0
ty
23rd Jun 2017, 5:16 PM
Adam Syed
Adam Syed - avatar
0
"A string is an array of chars", with the last element of that array is NULL character.
23rd Jun 2017, 5:20 PM
Hai Ph
Hai Ph - avatar
0
Char is a single letter or a no sometimes. But string can only be letter or group of letters..
23rd Jun 2017, 5:24 PM
Bheeshma
Bheeshma - avatar
0
@Bheeshma no man, var s = "123" is a string
23rd Jun 2017, 5:29 PM
clement
clement - avatar
0
Yeah.. I agree
23rd Jun 2017, 5:40 PM
Bheeshma
Bheeshma - avatar
0
We can convert integer to string in java..
23rd Jun 2017, 5:43 PM
Bheeshma
Bheeshma - avatar
0
@Bheeshma and in c++ and in js and in python and I guess a lot more
23rd Jun 2017, 6:29 PM
clement
clement - avatar
0
From the c# course arrays & strings working with strings Strings It’s common to think of strings as arrays of characters. In reality, strings in C# are objects. When you declare a string variable, you basically instantiate an object of type String. If strings were arrays of chars they would not have all these nice methods like "Length", "Contains" , "EndsWith"
23rd Jun 2017, 9:20 PM
sneeze
sneeze - avatar