0
Could somebody explain what exactly a string is.
10 Respostas
+ 2
A string is an array of chars
+ 2
simply string is text
0
ty
0
"A string is an array of chars", with the last element of that array is NULL character.
0
Char is a single letter or a no sometimes. But string can only be letter or group of letters..
0
@Bheeshma no man, var s = "123" is a string
0
Yeah.. I agree
0
We can convert integer to string in java..
0
@Bheeshma and in c++ and in js and in python and I guess a lot more
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"