+ 2
helpppppppppp
what is string..... I am not getting a minimum idea.....anybody please help me out
4 Answers
+ 1
h,e,l,p are charecters and
helpppppppppp is a string
so a string is collection of charecters
in Python its a Data Type like int to store integer
+ 1
anything more...still confused
+ 1
In C programming, a string is an array of characters terminated with a null character \0. For example:
"c string"
When compiler encounters a sequence of characters enclosed in the double quotation marks, it appends a null character \0 at the end.
0
sure
a computer stores data which are in several types
these are categorized to some like
Integer - int - for Numbers without decimal like 1,10
floating point - float- for numbers with decimal 1.10
Strings-string-for charecter or series of charecters etc
so if you want to tell a computer this is a sentence you define it as a string data type eg-
string a='hello'
in python its simply a='hello'
but if you print(type(a)) it says variables datatype in this case type(a)=string