C_62 Strings in C - part 1 | C programming tutorials
Vložit
- čas přidán 16. 07. 2024
- In this lecture we will discuss:
- What is String in C?
- How to declare a string?
- How to initialize a string in C?
Best C Programming Tutorials: • Programming in C
*********************************************
Connect & Contact Me:
Jenny's Lecture Hindi: / @jennyslectureshindi
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
Telegram Group Link: Jenny's Lectures
telegram.me/jennyslectures
*******************************************
More Playlists:
Programming in C Tutorials: • Programming in C
C++ Tutorials for beginners: • Lec 1: How to Install ...
Printing Pattern in C: • Printing Pattern Progr...
Best Python Tutorials for Beginners: • Python - Basic to Advance
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Dynamic Programming: • Dynamic Programming
Operating Systems tutorials: // • Operating Systems
DBMS Tutorials: • DBMS (Database Managem...
Tags:
strings, string in c, what is string, c programming tutorials, c programming, best c programming tutorials
#coding #strings #jennyslectures #cprogramming #clanguage
You are like the last-minute savior of us 1st-year students who are having exams tomorrow morning and started studying now ...I had a brief idea about everything but now its crystal clear
16:56 question answers..
1. Valid
2.Size=12(1 null character)
3.Invalid(No space for null character in memory)
4.Size=6
5.Valid
3rd one wouldn't throw any error, it's valid
@@vinayakk2745 it should be 6, not 5.
yes@@But_tHope
@@But_tHopeyes it should be but it will not give any error
Thank you akka vera level clear explanation 🤩
czcams.com/video/JK1j1R8ukCk/video.html
Ena thambi intha pakkam
Helloo... Manam kuda teluge 😄
Telugu vare vahh
Vimalisam🔥
printf(''Who Is Jenny Mam ? ");
output : jenny mam who is alredy stolen my heart 😜
Aha....
@@delllaptop519 Bhai output glt h tumhara 😂😂
We have C language in our coming semester. Perfect time to study.
And your Data Structure video are better than Unacademy's.
czcams.com/video/sStlBoYbaHs/video.html
It's a privilege to watch ur stuff...the way u tutor is a way ahead.. I could say this with a sigh of bliss..
10:27 yaar make me fall in love with your way of teaching. Really appreciated
Madam.I'm a Sri Lankan University Student.thank you for every lessons.very clear vedios.god bless you
😂😂😂😂😂
Ma'am, you are a n̶a̶t̶i̶o̶n̶a̶l̶ global treasure.
Thank you very much for educating us for free.
I am from Somalia So Madam I learn many courses in your channel and i understood very well so I proud you🙏🙏
i love the way you teach mam ,means its simple and clear.
Best online teacher... Padha ti bhi acchi ho... Or dakhna ma bhi... To ander sa energy ata ha pardhna ka liye
Mam thank you so much..
Please keep on doing videos on C language.And complete it as soon as possible .
Because I am learning C language through your videos.
👍🏻👍🏻🙏🏻Thank you
czcams.com/video/sStlBoYbaHs/video.html
char s3[5]="hello"; has error because size of string is 6(no of character+1) but its given as s3[5]
Hmm correct
Nice knowledge...nice way to explain... Sure God will rewards you.
You did a great job for all of us. Your explanation is so clear and simple and that's what a beginner students need. Thank you so so much❤️
czcams.com/video/sStlBoYbaHs/video.html
1st s1 is correct.
2nd s2 ia [12].
3rd s3 is wrong❌.
4th s4 is [6].
5th s5 is correct✅.
I seriously like and use your lectures you will be a good programmer soon, thank you !!
😂😂😂
Smart teacher ,smart teaching..I am from sri lanka..🇱🇰
Mam ur teaching method is soo soo fablous and easy to get ....lots of love mam....🥰🥰❤❤
Ma'am jenny you are a genuine Professor, i am from Pakistan 🇵🇰, i learnt it very well
s1 : Allowed
s2 : Allowed, size 12 byte
s3: Not Allowed
s4: Allowed, size 6 byte
s5: Allowed
S3 is allowed because counting starts from 0 so it will be of 6 spaces only
Similarly in S2 it will be return as 11 not 12 mam has asked about missing thing right so we have to write that not size
@@prathamshrivastava6641 NO bro, we always put length in case of initialization and for accessing we use index ,as we are initializing here so here length is 5 .And total number of characters are 6 (including null character).So it is not allowed.
@@prathamshrivastava6641 no bro s3 is not allowed
@@ChirantanSadhu na bhai maine run karke dekha and Hello print ho gya (i use Code Blocks for programming)....so S3 is allowed bcoz HELLO mae 5 characters hai aur size bhi 5 hai ....as ma'am said in starting ki Null character declare nhi kara hai toh by default null character will be declared by compiler but question is "if size is 5 toh null character ke liye space hi nhi baccha" ab ya toh yeh Code Blocks mae run kar gya isliye tum log ek baar TURBO C mae run karke batana muje comment section mae ki TURBO C mae run hua ya nhi
Super akka chala baga explain chesav 👋👋 verey level iam became a big fan of u
By when this series be completed?
Also apart from video lectures can you take up some really important questions asked in placement exams(strings code,functions etc)
mam you are the only one teacher that explain with zero my doughts are flashed by the dry runn of the program thank you so much mam for the great content...
Ma'am ur smiling is just killing me without any pain ......
N Thank you so much for this type of lovely explanation.. 💕
Bless your parents as they offer such beautiful brain to the world.
Very awesome moment when u forgot.
Excellent friend guide teacher....
Thank you so much for this video mam🤗❤
Your teaching skill and smile are
great
Thank you professor 😉👍🏽
czcams.com/video/sStlBoYbaHs/video.html
s1:valid
s2:12 bytes
s3:not valid ,because it has size is 5 ,but it should take the null value also. it should be size of 6.so it is invalid
s4:6 bytes
s5:valid
❤❤❤Thank you so much for this playlist❤❤❤❤
Big fan of you and your lectures.....❤️
czcams.com/video/sStlBoYbaHs/video.html
Mam please start making videos on Object oriented programming of c++ also and java also
ALX student finding hope from your lectures. Thank you ma'am
Which cohort
i'm really love your eye ; from cambodia. i appreciate it.
That was so cute moment at the time between 10.25 to 10.30
I just watched her pretty smile
Her smile is like an blooming flower 🌼
I won't forget this pretty moment ❤️🍁✨👍
Ur teaching is fabulous mam ❤️🔥🥰
Thankyou for teaching love you 💞
Hi Jenny, at 9:02 location you were explaining like 6 to 9 locations some garbage values , but it will fill with '\0' NULL Character itself. can you plz confirm it if I am wrong.
Thanks for your efforts mam
Thanks a lot ....🙏🙏🙏🙏🙏🙏🙏ma'am nice explanation method.....👍
I feel so thankful watching your lectures
czcams.com/video/sStlBoYbaHs/video.html
Thank u mam. you are the best
1: valid
2 : 11
3 : invalid
4 : 6
5 : Valid
Mam keep doing thizzzzz videos really helpful💜
Best Playlist For Beginner
Mazaa aa gayaa ma'am ji🙏
thanks for providing such type off video ......................
czcams.com/video/sStlBoYbaHs/video.html
Thank you mam🙏🙏🙏🙏
Thank you mam very clear videos god bless you mam thank you mam
Mam in case of ''we rock'' we need to provide a null character i guess otherwise it becomes a char array.
i thanks you very much.
Super explanation mam
Mam you smile is killer 🔥🔥🔥like ur teaching style 💖
TQ for explaining to students
Mam this is too good . Mam thank you mam
thankyou maam
U r the best technical guruji
mai commerce student hu magar pata nahi kyu kuch samajh nahi aaya par dekh ke achha laga
Thank you mam
Tq much love
Thanks Ma'am ✨
Thanks from Sri Lanka 🇱🇰 ❤
😊 thanks mam to solve my query.
Good explanation mam❤
Thank you ma'am
Thank you so much mam..
Thanks
thank you
Jenny lecture and Naresh IT both r best....🙏🙏
czcams.com/video/sStlBoYbaHs/video.html
Jenny mam lectures are best than naresh it..
Thank you
Thanks 👍
Mam you are great personality
Exams are near 😮
No need to fear 😨
When jenny mam is hear👍💪💪💪💪💪💪
🙏Thanks 👌✨
All are valid except s3
Thank you akka
How will you enter single one by one characters in character array using for loop
Thank u mam
Love u mam😍
Your content so helpful and java course start please ma'am
All are valid
Super 👌👌👌 mam,keep going on...
czcams.com/video/sStlBoYbaHs/video.html
S3[5] = "Hello" is not having enough storage for the string, as given strings always ends with "\0"
'\0'
Mam your explanation is very good
All are allowed expect for
char s3 [5] = "hello"; for this the size of the array should be 6 to add null character also at the end.
Size of 2nd one is 11bytes
and
size of 4th one is 6bytes
s3 is allowed even if we dont provide null character(null character not necessary.. compiler will assign null character)
s2 size would be 12bytes (compiler will assign.... as mentioned above)
For second one it's 11bytes naaaa
@@hariparuchuru3858 no its 12.
2*6(h,e,l,l,o,\0) -->12
run below code for better understanding, brother
#include
int main()
{
int b;
char a[]="12345678910";
b=sizeof(a)/sizeof(a[0]);
printf("%d",b);
return 0;
}
S1= allow
S2=allow size=10
S3=this is also allow but "hello" ke baad ek character garbage value print hogi
S4=allow size=6
S5=allow
the size of s2 will be 11 not 10
otherwise it will show a warning message and print 1234567891 not 12345678910
but as maam said in her next video she took the string as "Jayanti Khatri" and then she said that the size should be atleast 15 not 14
so if we see here than for s2 the size should be 12 and s3 is not allowed because the size should be 6
if u run it and specify the size as 11 and 5 for s2 and s3 it will work , idk how
@@lakshsinghania I have run s2 and s3 on decoder compiler and it is giving same size in output
Classes are going superb 👍mam.
But still I want to request you to upload 2 to 3 videoes per day as I want to complete atleast 1 topic per day as I am giving time around 8 to 12 hours per day in studying coding
czcams.com/video/JK1j1R8ukCk/video.html
in which year u are bro?or u r not in college? plz reply
Thanku
czcams.com/video/JK1j1R8ukCk/video.html
Thank you Ma'am
czcams.com/video/sStlBoYbaHs/video.html
Thanks so much mam
czcams.com/video/vzrbC4e7TLc/video.html
mam thankyou thankyou so much
Ma'am can you upload next video on the topic of algorithms?
Ty ma'am 🥰
char comment[SIZE] = "thank you so much Jenny. Loved your video \0";
yeah badiya tha guru
1 ans might be an error because in " double coation " genereally we dont se commas insted of spaces
Very nice