what is string😯 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

what is string😯

13th Apr 2018, 12:22 PM
Amin Osman Osman Alawad
Amin Osman Osman Alawad - avatar
11 Answers
+ 7
MI NO Your question is a string character - a letter or symbol ex: ' c ' string - a word or array of characters ex: ' example '
13th Apr 2018, 12:28 PM
Manual
Manual - avatar
+ 10
Example: Character = 'a', 'B', 'z', 'x', 'o' String = "Hello, nice to meet you" So character is using ' ' and string using " "
13th Apr 2018, 12:46 PM
ZΛRTHΛИ
ZΛRTHΛИ - avatar
+ 8
Strings A string is an ordered sequence of characters, enclosed in double quotation marks. It is part of the Standard Library. You need to include the <string> library to use the string data type. Alternatively, you can use a library that includes the string library. SOURCE;: https://www.sololearn.com/learn/CPlusPlus/1623/ Good luck 💚😉👍
13th Apr 2018, 12:49 PM
Baraa AB
Baraa AB - avatar
+ 4
MI NO You're welcome!
13th Apr 2018, 12:48 PM
Manual
Manual - avatar
+ 3
so if we talk about an string than it simply say that the string is a collection of homogeneous data type of character it is similar to an array but the array is a collection of integers data type and the string is collection of character data type for example if we write a my name . string =" my name is Kapil ."
13th Apr 2018, 5:15 PM
Kapil Mewada
Kapil Mewada - avatar
+ 2
thank's
13th Apr 2018, 12:44 PM
Amin Osman Osman Alawad
Amin Osman Osman Alawad - avatar
13th Apr 2018, 12:51 PM
Uttam
Uttam - avatar
+ 2
hi @saurabh Sharma it's not a compulsion that you should start 'c'before C ++ you can directly start C ++ because every language has a specific and its unique features they work with .. so it is not necessary to start 'c'before c++
14th Apr 2018, 5:43 AM
Kapil Mewada
Kapil Mewada - avatar
+ 1
A way or library to treat with characters
13th Apr 2018, 3:31 PM
Möhàméđ Şéîf
Möhàméđ Şéîf - avatar
+ 1
guys if I want learn c++ .. than I should learn c language?
14th Apr 2018, 4:46 AM
Saurabh Sharma
Saurabh Sharma - avatar
0
string - объявляет переменную литературного типа, переменная может содержать символьное значение, чтобы придать такой переменной значение, нужно взять его в ковычки, например string a="123abc"; (при вводе через cin, ковычки ставить не нужно)
13th Apr 2018, 8:36 PM
Пафусик
Пафусик - avatar