ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
C_62 Strings in C - part 1 | C programming tutorials
ฝัง
- เผยแพร่เมื่อ 18 ส.ค. 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/...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
Telegram Group Link: Jenny's Lectures
telegram.me/je...
*******************************************
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
Thank you akka vera level clear explanation 🤩
th-cam.com/video/JK1j1R8ukCk/w-d-xo.html
Ena thambi intha pakkam
Helloo... Manam kuda teluge 😄
Telugu vare vahh
Vimalisam🔥
We have C language in our coming semester. Perfect time to study.
And your Data Structure video are better than Unacademy's.
th-cam.com/video/sStlBoYbaHs/w-d-xo.html
printf(''Who Is Jenny Mam ? ");
output : jenny mam who is alredy stolen my heart 😜
Aha....
@@delllaptop519 Bhai output glt h tumhara 😂😂
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
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
Madam.I'm a Sri Lankan University Student.thank you for every lessons.very clear vedios.god bless you
😂😂😂😂😂
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
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🙏🙏
Best online teacher... Padha ti bhi acchi ho... Or dakhna ma bhi... To ander sa energy ata ha pardhna ka liye
S1 - Valid;
S2 - Valid, Size - 12;
S3 - Not Valid cause no space fir null character;
S4 - Valid, Size - 6;
S5 - Valid.
char s3[5]="hello"; has error because size of string is 6(no of character+1) but its given as s3[5]
Hmm correct
Sorry Madam For That Day, Maine Aapko Galat Comment Kiya Tha, Par Me Ek Baat Bhul Gaya Tha Ki Aap Meri Guru Ho Aur Guru Se Badhkar Koi Nahi Hota, Jay Shree Krishna 🙏🏻
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❤️
th-cam.com/video/sStlBoYbaHs/w-d-xo.html
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
th-cam.com/video/sStlBoYbaHs/w-d-xo.html
1st s1 is correct.
2nd s2 ia [12].
3rd s3 is wrong❌.
4th s4 is [6].
5th s5 is correct✅.
Nice knowledge...nice way to explain... Sure God will rewards you.
1)true
2)size=12(including 1 null character)
3)invalid(since we should include one more byte for null character)
4)size=6 bytes
5)true(valid)
1: valid
2 : 11
3 : invalid
4 : 6
5 : Valid
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
Ma'am jenny you are a genuine Professor, i am from Pakistan 🇵🇰, i learnt it very well
Smart teacher ,smart teaching..I am from sri lanka..🇱🇰
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)
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 ❤️🍁✨👍
ALX student finding hope from your lectures. Thank you ma'am
Which cohort
Bless your parents as they offer such beautiful brain to the world.
i love the way you teach mam ,means its simple and clear.
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...
Very awesome moment when u forgot.
Excellent friend guide teacher....
Exams are near 😮
No need to fear 😨
When jenny mam is hear👍💪💪💪💪💪💪
I feel so thankful watching your lectures
th-cam.com/video/sStlBoYbaHs/w-d-xo.html
thanks for providing such type off video ......................
th-cam.com/video/sStlBoYbaHs/w-d-xo.html
1: Valid
2: Valid and the size is12.
3: Valid you will get no error if u will print S3 u will get helloÇ . The size of S3 is 5.
4:Valid and the size is 6.
5:Valid
mai commerce student hu magar pata nahi kyu kuch samajh nahi aaya par dekh ke achha laga
char comment[SIZE] = "thank you so much Jenny. Loved your video \0";
1- Valid =====size is 50 and array of characters
2- Valid =====size is 11 characters+1 that is 11 and
3-Invalid===== because size is 5 we want size 6 the last character in null \0
4-Valid====== size is 6 0 to 5
5-Valid====== white space is done
i thanks you very much.
Big fan of you and your lectures.....❤️
th-cam.com/video/sStlBoYbaHs/w-d-xo.html
Mam we had Python as the language to code & i am 1st yr btech student ,, i just get to know abt u r C classes... Could u pls make videos on python too.......
th-cam.com/video/sStlBoYbaHs/w-d-xo.html
Code with Harry ki video dekh lo
python se placement nhi milti
S3[5] = "Hello" is not having enough storage for the string, as given strings always ends with "\0"
'\0'
Thank you professor 😉👍🏽
th-cam.com/video/sStlBoYbaHs/w-d-xo.html
Super akka chala baga explain chesav 👋👋 verey level iam became a big fan of u
Such a cute smile
Dear mam.... ❣️
I seriously like and use your lectures you will be a good programmer soon, thank you !!
😂😂😂
Jenny lecture and Naresh IT both r best....🙏🙏
th-cam.com/video/sStlBoYbaHs/w-d-xo.html
Jenny mam lectures are best than naresh it..
S1 - Valid;
S2 - 12
S3 - Not Valid
S4 - 6
S5 - Valid
S3 - Valid
@@ourculture7079 no because we have to add null value \0 hence it is not valid
its value should be s[6] not s[5]
S3 valid h compilation time error nhi h run bhi ho rha
Yes s3 is valid because index starts from 0
S3 is valid
Ma'am ur smiling is just killing me without any pain ......
N Thank you so much for this type of lovely explanation.. 💕
Mam ur teaching method is soo soo fablous and easy to get ....lots of love mam....🥰🥰❤❤
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
Mam you smile is killer 🔥🔥🔥like ur teaching style 💖
1... valid
2.... size will be 12 bcz of 1byte for null value
3... it should be invalid according to lecture of mam but it is showing a correct output
4... valid and size will be 6
5..... valid
All are valid except s3
Mazaa aa gayaa ma'am ji🙏
Thank u mam. you are the best
Mam in case of ''we rock'' we need to provide a null character i guess otherwise it becomes a char array.
char s3[5]="Hello"
-> HelloÇ
char s3[6]="Hello"
->Hello
char s3[4]="Hello"
->HellÇ
not given any erros but print unkown symbol in less spaces
Mam please start making videos on Object oriented programming of c++ also and java also
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;
}
a friend Introduced me to your channel and for about two weeks now I always learn with you...
You way of teaching is first class and I have already fallen in love with you and your lectures
I can bodly says I've found my MENTOR now👍😘
i'm really love your eye ; from cambodia. i appreciate it.
Ma'am after C series please start Object oriented programming
th-cam.com/video/JK1j1R8ukCk/w-d-xo.html
10:25 that was too cute😍
Assignment:
char s1[50] = "HNO-126,gurgaon"; ........valid
char s2[ ]="12345678910"; ........valid
char s3[5]="hello"; ......................invalid, because it will lead to unexpected behaviour because of no space for null
char s4 is valid
char s5 is valid
size of char s2 will be 12
size of char s4 will be 6
Mam aapki eik अदा पसंद aayi जब आप बीच में भूल gayi थी तो आपने bola yaar 🥰🥰🥰🥰😘
A clear definition of beauty with brains. What a clear explanation. Impressive
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
th-cam.com/video/JK1j1R8ukCk/w-d-xo.html
in which year u are bro?or u r not in college? plz reply
Mam your explanation is very good
How nice voice... For teaching i will give you 10 out of 10, But for voice 100 out of 10
1:58 Lecture Started
And the answers are
1. True
2. True with size 12
3. False as the size should be 6 there
4. True with the size of 6
5. True
Second one size is 10 know....how 12????
@@lakshmisayyapureddy376 upto 9 siz is 9 only but for 10 size is 2 and 1 for null character, so totally 9+2+1
Thank you mam very clear videos god bless you mam thank you mam
Mam,You are god of me and lst year students and my friends
Thanks so much mam
th-cam.com/video/vzrbC4e7TLc/w-d-xo.html
❤❤❤Thank you so much for this playlist❤❤❤❤
Answer to hw question:
1) S1 is valid
2) the size of S2 >=11
3) S3 is not valid because size must be atleast 6
4) S4 size is 6
5) S5 is valid.
Nic
I ran all the types of strings on online gdb compiler they gave no error .
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.
Super 👌👌👌 mam,keep going on...
th-cam.com/video/sStlBoYbaHs/w-d-xo.html
Your content so helpful and java course start please ma'am
Thanks from Sri Lanka 🇱🇰 ❤
Best Playlist For Beginner
Thanks a lot ....🙏🙏🙏🙏🙏🙏🙏ma'am nice explanation method.....👍
TQ for explaining to students
15:10 ALL ARE VALID
q3 is almost correct but the size of the array S3 should be at least 6 to accommodate the null terminator '\0' that is automatically added to the string by the compiler
Your teaching skill and smile are
great
U r the best technical guruji
Mam you are great personality
13:37 mamm I think you should give a null (i.e '\0') after string input ...
Haye madam aapki aada maar dala ree 😘😘😍😍😍
Love u mam😍
Nice explaining and nice laughing in mid.
S1 valid;
S2 valid;
S3-not valid;
S4-valid;
S5-valid;
Return 0;
10:23 this same happening with me in GD😁😁😁😁😁
Mam your expression killing ❤️
10:24 to 10:30 am not getting yaarr 😂😂😂😂😂😂😂😂😂cute mam dont mind me i am always learn something on your videos
Madam you are well talented and have good grip on your knowledge .
Respect from your Neighborhood Pakistan.🤩
mam have no opinion to point out. but what I observed is if we enter char[5]=hello; its taking . compiler is taking \0 as 6th one. but you are including \0 in char[5].
Thankyou mam
th-cam.com/video/JK1j1R8ukCk/w-d-xo.html
😊 thanks mam to solve my query.