What is mean by string i cant understand? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is mean by string i cant understand?

30th Mar 2017, 5:42 PM
Wahab Shah
Wahab Shah - avatar
3 Answers
+ 3
A string is a datatype,that can hold symbols,numbers,alphabets etc. They start and end with ".
30th Mar 2017, 7:22 PM
Meharban Singh
Meharban Singh - avatar
+ 1
a letter, word or few fords. They are written between " and ". That's so program can see difference between variables and words wich are inputed or need to be outputed and so...
30th Mar 2017, 6:12 PM
Ivan Kerepčić
Ivan Kerepčić - avatar
+ 1
String is a class. When very first programming language (I am not arguing that Assembly is the first programming language ok? I mean in structured programming language :D, I think C is the first structured programming language though :D) like C is invented, there is no String class appeared yet. At that time there was only char as the variable. And later people start to realize that we need to use words and sentences, so people start to make String (collections of chars) as the variable, so you can just create String type, rather than Chars[] to output the words and sentences. For e.g. String hello = "Hello"; // in C, this is char[] hello = {'H','e','l','l','o'}; // in Java, this is String class, not the variable yet. // in C#, yes, this is String class as well as you can use them as variable type. In Java, String is still the class by design but in C#, you can just declare them as string hello = "Hello"; than String hello = "Hello"; // Bro, String is just the collections of Characters in programming languages. Some programming languages don't have built in String types to show words and sentences.
30th Mar 2017, 8:52 PM
Yhal Htet Aung
Yhal Htet Aung - avatar