Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Class notes DSA

Rating
-
Sold
-
Pages
1
Uploaded on
04-03-2023
Written in
2022/2023

Providing a brief overview of C programming. It's helpful for all those who have started as programmers.

Institution
Course

Content preview

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

Written for

Course

Document information

Uploaded on
March 4, 2023
Number of pages
1
Written in
2022/2023
Type
Class notes
Professor(s)
Jenny
Contains
All classes

Subjects

$85.59
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
arshiyashaikh

Get to know the seller

Seller avatar
arshiyashaikh
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions