C_62 Strings in C - part 1 | C
programming tutorials
In this video we 'll talk about basics of strings like what is string and
how the string is different from character array how to declare a
string how to initialize a string. Use my code jkl10 to get 10 discount
on your paid subscription the details i 'll put in the description box of
this video you can go and check out. A string like care and string
name i am taking generally we take like name and size what 10.
This is what declaration of a string and you know name of the string
is name right name. name and name is containing what base
address the string that is 2000. base address is 2000 so it is you can
say internal pointer to this string. index would be same zero to size
minus one zero to nine. While declaring here only we can write what
string as we have discussed in previous videos also that starting
videos of c programming how we write string something like this in
double quotes is considered as string if i write jenny jenny's lectures
this is also a string. sky values will be stored so sky values would be
stored here.
A string is a character array like a one dimensional array or a
character constant or a string constant. By default size would be
one two three four five and six like this jenny. The number of
characters plus one that you need to take care of size is one. The
data type must be careful and string is not considered as a data
type like int float and care. String is percentage s right like in
foreign teaser percentage d for float percentage f for character
percentage c for the string. String name is considered as a pointer
pointer pointer to the first character of the string right so we can
access the the string using this pointer also. If you declare here so
you must declare size what 8 if you declare 5 it is not allowed
because size is only 5. Some drawbacks of scanner function that 's
why we use get as function also we have some drawbacks of getters
function so that everything will discuss in next video with the proper
example and that example also i 'll show you practically on my
laptop right so now some questions on string for you is i guess you
got the basics of string only right i mean what is a string and some
declaration and initialization
programming tutorials
In this video we 'll talk about basics of strings like what is string and
how the string is different from character array how to declare a
string how to initialize a string. Use my code jkl10 to get 10 discount
on your paid subscription the details i 'll put in the description box of
this video you can go and check out. A string like care and string
name i am taking generally we take like name and size what 10.
This is what declaration of a string and you know name of the string
is name right name. name and name is containing what base
address the string that is 2000. base address is 2000 so it is you can
say internal pointer to this string. index would be same zero to size
minus one zero to nine. While declaring here only we can write what
string as we have discussed in previous videos also that starting
videos of c programming how we write string something like this in
double quotes is considered as string if i write jenny jenny's lectures
this is also a string. sky values will be stored so sky values would be
stored here.
A string is a character array like a one dimensional array or a
character constant or a string constant. By default size would be
one two three four five and six like this jenny. The number of
characters plus one that you need to take care of size is one. The
data type must be careful and string is not considered as a data
type like int float and care. String is percentage s right like in
foreign teaser percentage d for float percentage f for character
percentage c for the string. String name is considered as a pointer
pointer pointer to the first character of the string right so we can
access the the string using this pointer also. If you declare here so
you must declare size what 8 if you declare 5 it is not allowed
because size is only 5. Some drawbacks of scanner function that 's
why we use get as function also we have some drawbacks of getters
function so that everything will discuss in next video with the proper
example and that example also i 'll show you practically on my
laptop right so now some questions on string for you is i guess you
got the basics of string only right i mean what is a string and some
declaration and initialization