C_38 While Loop in C (part-2) | C Language Tutorials

  Рет қаралды 165,145

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

Пікірлер: 291
@dharshand621
@dharshand621 3 жыл бұрын
At 12:01,The while loop will print 0 to 10,Since we did not initialize the value of i, it takes i=0 and then the loop will get terminated then the "End of the program" will be printed.
@supradeepthavuta1028
@supradeepthavuta1028 Жыл бұрын
The output which u mentioned happens only for "for loop"..not for while
@stanleykelechi7892
@stanleykelechi7892 Жыл бұрын
@@supradeepthavuta1028 Try it on you computer and see for yourself. It works for both.
@ziyasayyad1162
@ziyasayyad1162 Жыл бұрын
the value of i depend on compiler,
@isharanisahu8787
@isharanisahu8787 Жыл бұрын
It's give same output but i don't understand how? Int datatype 0 is not the smallest int. What about -ve numbers?
@barackdemba499
@barackdemba499 3 жыл бұрын
Hello teacher Jenny, I am your student from Kenya,you have made learning C programming language so interesting and understandable for me. Thank you so much for your unending efforts to freely make such educative videos. May your bucket of knowledge never lack.
@priyanshuhurmade8626
@priyanshuhurmade8626 3 жыл бұрын
Hello bro From India ❤️🇰🇪🇮🇳
@maryannemuthoni5388
@maryannemuthoni5388 11 ай бұрын
I am from Kenya too 🙂, sema bro 😂
@Denbl-du7mr
@Denbl-du7mr 7 ай бұрын
Nko hapa pia saseni watoto wa zakyo 😂
@PeddinticharanKumar-ty7xj
@PeddinticharanKumar-ty7xj 25 күн бұрын
Vhfhhh
@sourabhkale5211
@sourabhkale5211 2 жыл бұрын
At 11:31 If didn't give i value it will going in infinite loop and printing interger range when ans is -1 that time loop break and coming outside the loop.
@adityabikramjena4584
@adityabikramjena4584 2 жыл бұрын
Starts at 3:04
@waseemahmed8901
@waseemahmed8901 3 жыл бұрын
Hi, my name is Wasim Ahmed and I am from Islamabad, Pakistan . Ma'am, you are really impressive. I see all your DSA lectures which are really helpful for me in exams. I wanna to thank you.
@AvishekPaulOnline
@AvishekPaulOnline 3 жыл бұрын
Hello from India. 🎊
@waseemahmed8901
@waseemahmed8901 3 жыл бұрын
@@AvishekPaulOnline Hello
@priyanshuhurmade8626
@priyanshuhurmade8626 3 жыл бұрын
Hello from India
@rafiashan7877
@rafiashan7877 3 жыл бұрын
I am from lahore ,Pakistan. Ma'am really teaches in a very simple and easy way.I have yet to get admission in university. So i am here to learn things in advance.
@abdussalamashuaebi7185
@abdussalamashuaebi7185 3 жыл бұрын
My teacher has global eyes. I am here from the Arab lands. Thank you so much.
@crazythinkers642
@crazythinkers642 2 ай бұрын
At 13:13 Output will be nothing when we use semicolon after while
@siddhartharaj8451
@siddhartharaj8451 3 жыл бұрын
at 14:47 #include #include void main() { int i=0; while(++i); { printf("%d ",i); } printf("end of program"); getch(); } it gives 0 end of program
@elavarasan_r154
@elavarasan_r154 3 жыл бұрын
It's wrong . Answer is 1
@siddhartharaj8451
@siddhartharaj8451 3 жыл бұрын
@@elavarasan_r154 program run kar ke copy paste kiya hu bhai . Answer 0 aa raha hai
@elavarasan_r154
@elavarasan_r154 3 жыл бұрын
i=1 bro because ++i So answer is 1 and end of the program
@elavarasan_r154
@elavarasan_r154 3 жыл бұрын
See that logic bro
@mechile_pakki
@mechile_pakki 2 жыл бұрын
If there is increment or decremnt will it be. A loop
@vrmohan7709
@vrmohan7709 3 жыл бұрын
Iam waiting exam on c this semester and you are my reference❤
@142sumitdakare3
@142sumitdakare3 3 жыл бұрын
Mam you are all programs explain in a very very simple language Soo it is very simple to study for me. Thank you ... mam
@BeautyofLanguage
@BeautyofLanguage 3 жыл бұрын
14:47 it will print 0 and then end of program
@bucket18
@bucket18 2 жыл бұрын
I think it should print 1 and then end of program .... Because we are using pre increament
@pratibha_y
@pratibha_y 2 жыл бұрын
Please explain why it will print 0
@ayushuniyal2586
@ayushuniyal2586 3 жыл бұрын
At 14:49 Output - 0 End of program
@aarjuparween8724
@aarjuparween8724 Жыл бұрын
how do u get 0 and End of program, I am running it in code blocks but not getting any output?
@dilshoddilmurodov-f9r
@dilshoddilmurodov-f9r Жыл бұрын
at 14:23, it is not gonna stop i checked it but anyway I understand this lesson deeply thank u)I
@psyc_taste9616
@psyc_taste9616 3 жыл бұрын
14:47 it will print "end of program"
@thilakparamasivan8409
@thilakparamasivan8409 Жыл бұрын
No
@punithgowda6723
@punithgowda6723 3 жыл бұрын
Thank you for data structures helped me alot. Keep rocking
@ashurox1129
@ashurox1129 3 жыл бұрын
You are the best!! I am from IIT BHU but i never focussed on proffs while they were teaching. (you know it right). Now i got an intern in a reputed company and will get placed next year. Thank you for ur courses especially DSA. Love you and a gift i have in my mind and give you if i ever get a chance. Thanks again!! ♥
@RahulBisht_001
@RahulBisht_001 3 жыл бұрын
Vro iit me teaching kaise hoti hai. Plzz reply yrr🥺
@SouravKumar-ms9ws
@SouravKumar-ms9ws 2 жыл бұрын
@@RahulBisht_001 Kuch khas nahi baki college ki hi taraf bas prof slides reading marte ha🙃
@rajbhardwaj2180
@rajbhardwaj2180 2 жыл бұрын
Bro are u on telegram if yes do tell me so that I can ask u my cs related query
@tps8470
@tps8470 2 жыл бұрын
11:48 No output Thanks a Lot Mam
@priyashanmugam3233
@priyashanmugam3233 3 жыл бұрын
Mam, when we didn't initialize any value to i, it'll take as default value 0.so it'll print from 0 till 10.
@akshatverma9788
@akshatverma9788 2 жыл бұрын
And after printing 0-10 it will print "End of Program"
@De-CODE7
@De-CODE7 2 жыл бұрын
but I am not getting this type of output bro, my o/p is only end of the program
@chinnu1820
@chinnu1820 2 жыл бұрын
@@De-CODE7 how did you get that output bro,i have also getting the above o/p... If you get what mam says ,plz text it on comment box broo....
@sumainakyasar8857
@sumainakyasar8857 2 жыл бұрын
Is it also machine dependent? To know that, plz say which IDE u r using
@nowuknow8570
@nowuknow8570 3 жыл бұрын
@11:53 it prints 0-10 and the end sentence
@asthaagarwal8554
@asthaagarwal8554 3 жыл бұрын
Ma'am your data structures playlist helped me a lot... Now, I have planned to go further and learn DAA(design and analysis of algorithms). Please make a playlist on DAA. Your way of writing code and teaching it is so good. Literally, I have tried to learn DAA from other playlists which are available on KZbin but it didn't help me that much. Please try to make videos on DAA. It will help me a lot🙏
@rajbhardwaj2180
@rajbhardwaj2180 2 жыл бұрын
Buddy can u Plz help me in numerical related to c++ if u are done with it ?
@sriwathsanagumalli473
@sriwathsanagumalli473 3 жыл бұрын
Good evening mam, As u are explaining c, please explain java and other programming languages also, mam. Your explanation is awesome.
@maryannemuthoni5388
@maryannemuthoni5388 Жыл бұрын
11:45 gives an error on IDE 14:44 gives 0 and end 16:55 when you use %c gives the characters
@singarigallapavankumar4724
@singarigallapavankumar4724 3 жыл бұрын
Mam I ❤️ your way of teaching please do playlist on machine learning & artificial intelligence mam please mam
@Rohitsharmaa161
@Rohitsharmaa161 3 жыл бұрын
I am a big fan of your explanation mam❤️❤️❤️
@BeautyofLanguage
@BeautyofLanguage 3 жыл бұрын
11:50 when i is not initialised and condition is given, and increment is there, then the output will be 0-10
@sourabhkale5211
@sourabhkale5211 2 жыл бұрын
At 11:46 Ans is correct Loop didn't work control directly going out side the loop and printing outside the loop.
@Prasanna-im1zy
@Prasanna-im1zy Жыл бұрын
Yes
@SScreation95
@SScreation95 2 жыл бұрын
Jenny really your way is shortcut easily understood, please share me Java playlist
@vishalprasad9543
@vishalprasad9543 3 жыл бұрын
Ma'am if possible please give the notes and questions related to our semester
@educationchanel1609
@educationchanel1609 3 жыл бұрын
thank you so much mam for providing free c list this list is very helpful for me and as well all user who want to learn programmer i think that seeing your whole playlist of c i will make a good programmer thank you so much mam god bless you and complete your whole wishes
@sundaram_dixit
@sundaram_dixit 3 жыл бұрын
Mam you are great👻 thanks for making study easy for us
@Amit_iPhone_shorts
@Amit_iPhone_shorts 3 жыл бұрын
17:00- output in symbols
@greyhat5204
@greyhat5204 3 жыл бұрын
Mam ye infinity compiler k range par depend karta he. The range you have written is not same for all of the compilers. For example the range of the code blocks's compiler is bigger than the range u have written.
@mechile_pakki
@mechile_pakki 2 жыл бұрын
Hello ma'am , 11:08 you are saying about increment , but in while syntax no iteration I am just confused 😞😔
@pratikkunthe6472
@pratikkunthe6472 3 жыл бұрын
Expecting a heart from u maam. ❤
@aimeetchemdjou7353
@aimeetchemdjou7353 2 жыл бұрын
Thank you mama for the efforts you put in to make us understand 🥰
@brindhavenugopal4395
@brindhavenugopal4395 3 жыл бұрын
First view🤩 I am soo lucky to watch ur videos mam
@nikita-zj4sf
@nikita-zj4sf 3 жыл бұрын
When we don't initialise the variable..in for loop then at start of loop it is by default considered as zero in the sense it is by default initialised with zero when we don't initialise...
@kingstaregamerksg1394
@kingstaregamerksg1394 2 жыл бұрын
Hi
@harshittripathi3985
@harshittripathi3985 3 жыл бұрын
Once I saw u a year ago, through out past year u hv got a lots of change, especially ur pitch of voice..
@VinodKumar-ob1eh
@VinodKumar-ob1eh 3 жыл бұрын
14:49 ans is end of program
@himanshu-x8s6b
@himanshu-x8s6b Ай бұрын
thank you mam🌹🌹🌹🌹🌹🌹🌹🌹this is for your teaching
@PriyankaSingh-zg2jh
@PriyankaSingh-zg2jh 3 жыл бұрын
U,r too good I like u,r way of teaching...
@Habib-ullahm
@Habib-ullahm 2 жыл бұрын
the programm at 17:50 give infinite integer
@ranaawais9072
@ranaawais9072 3 жыл бұрын
You'r too much hard worker. You work a lot for us
@bhagyeshwadhale8101
@bhagyeshwadhale8101 2 жыл бұрын
Thank you mam... Can you make lecture series on JAVA language
@AM-cz2rb
@AM-cz2rb 3 жыл бұрын
Best explanation mam. you are great.
@142sumitdakare3
@142sumitdakare3 3 жыл бұрын
Mam you are intelligent mam
@priyadharshinim5092
@priyadharshinim5092 2 жыл бұрын
mam, why am i getting an infinite value for this program ? 10:24
@siddhjain914
@siddhjain914 2 жыл бұрын
Man aap bhaut accha padhti h bhaut hi badiya
@abdulrahimjalloh363
@abdulrahimjalloh363 Жыл бұрын
printf("%c",ch); This will print from a to z and all other characters
@jitendrapratapsingh9189
@jitendrapratapsingh9189 3 жыл бұрын
mam, when we don't initialize then by default it takes i=0 and gives an output from 0-10.
@hopemeles4106
@hopemeles4106 Жыл бұрын
that is same as brother
@abdulrahimjalloh363
@abdulrahimjalloh363 Жыл бұрын
If you place a semi-colon on the while, it will only print the statements out of the loop
@prakrutithakar1767
@prakrutithakar1767 3 жыл бұрын
Mam plz start arrays !!!!!!my exam are coming soon 🥺🥺🥺
@HARYANA.WALA13
@HARYANA.WALA13 3 жыл бұрын
Same Here
@sharmisthasinhakashyap4949
@sharmisthasinhakashyap4949 3 жыл бұрын
Truly agreed !!!
@ayanmondal202
@ayanmondal202 3 жыл бұрын
look in the play list she has already posted arrays
@pavankalyan2970
@pavankalyan2970 3 жыл бұрын
I have one doubt int a; is declaration or definition
@shwetha5367
@shwetha5367 3 жыл бұрын
@@pavankalyan2970 declaration
@vanshikagarg7586
@vanshikagarg7586 Жыл бұрын
output of code when condition is i
@meghasinha1706
@meghasinha1706 3 жыл бұрын
Fabbbb you are a life Savior of students like mee
@dominicamaria2897
@dominicamaria2897 3 жыл бұрын
13:59 Madam, I am getting an infinite loop!!🙄 How is it possible?
@biprajitdeb
@biprajitdeb 2 жыл бұрын
#include int main() { int i=1; while (i) { printf("%d ",i); ++i; } return 0; } maam apne video me bola tha k ye infinite loop nhi he aur ye -1 tk aake end ho jyga , lkin mere vs code me toh ye loop infinite tak chala; pls doubt clear kr dijiye maam and thank you maam for such videos
@dineshjl4821
@dineshjl4821 3 жыл бұрын
Intialising of i is written two times in the program i.e., int i = 1 and i = 1. It will throw an error.
@vasusunkari8942
@vasusunkari8942 2 ай бұрын
i think you should mention short infront of int because short int is 16 bit and it matches with range that you told in the video
@harshitshukla1372
@harshitshukla1372 3 жыл бұрын
Awesome voice my Dear c teacher
@kshatriyasaurabhchauhan3084
@kshatriyasaurabhchauhan3084 3 жыл бұрын
Ma'am , in while loop when we do increament (pre or post ) it goes to infinite loop ! It doesn't print till 0 or -1 as you have told in the video. Why ?
@devaganeshvar4831
@devaganeshvar4831 Жыл бұрын
Yes bro same doubt
@studyfyhimachal3756
@studyfyhimachal3756 2 жыл бұрын
11:45 output will be 0 1 2 3 4 5 6 7 8 9 10 end of program
@TechBlooded
@TechBlooded 3 жыл бұрын
Best video #TechBlooded🔥
@alkasinghrajput6780
@alkasinghrajput6780 2 жыл бұрын
##3:04 save your time
@shubhambhatt2704
@shubhambhatt2704 3 жыл бұрын
Mam can you please make a separate video on finding the second largest element in an array
@mdtaufeeqqureshi5273
@mdtaufeeqqureshi5273 3 жыл бұрын
A fan from UK
@errorless7921
@errorless7921 2 жыл бұрын
10:08 nice mam
@adityakalra768
@adityakalra768 3 жыл бұрын
And mam please do teach how to build logic in Loops (Patterns)
@apoidhukpiuapoi5905
@apoidhukpiuapoi5905 Жыл бұрын
now, tommorow's exam will suffer in my hands. thanks Jenny
@ruthrakaran
@ruthrakaran 3 жыл бұрын
11:48 #include int main() { int i; while(i
@shivalathanagula7153
@shivalathanagula7153 3 жыл бұрын
At 11:48, u didn't increment the value of i......so,it will repeat the values for infinite times....
@fatimaahmad5734
@fatimaahmad5734 2 жыл бұрын
I am implementing all the knowledge from this video on c++ .is it right?
@ShivPoojan.
@ShivPoojan. 2 жыл бұрын
at 11:54 the output is 0 1 2 3 4 5 6 7 8 9 10 end of program
@richards8160
@richards8160 Жыл бұрын
no I had run the program , so output is : end of program
@MAHESH-rf2uy
@MAHESH-rf2uy Жыл бұрын
At 12:02 I got output "End of the program" but how??? what 'i' value becomes mam...is it skip the while loop?? please clarify me mam...🙄🙄
@shivalathanagula7153
@shivalathanagula7153 3 жыл бұрын
At 9:56,it will not terminate the loop,coz,,based on compiler it terminates..I'm using GCC 64-bit compiler..am I right....!!
@richards8160
@richards8160 Жыл бұрын
yes u are right the loop is infinite loop
@marjavjain6680
@marjavjain6680 3 жыл бұрын
12:00 i guess it will print garbage value of i, it does in my compiler
@asusrog8238
@asusrog8238 3 жыл бұрын
mam,please tell what happens when we put semi column after while loop ?
@rameshv387
@rameshv387 Жыл бұрын
Mam for "char" program output shows capital alphabet and small alphabets and symbols . It doesn't show any 97, 98 values can you please explain
@pmdinnesh1283
@pmdinnesh1283 Жыл бұрын
At 11:57 it won't show any output bcoz it doesn't know from where to start ... I dried runned it and I also runned it in turbo c++
@richards8160
@richards8160 Жыл бұрын
yes u are right I had runned it in VS code
@SaweraSawera-990
@SaweraSawera-990 6 ай бұрын
Thanks mam❤😊
@rajveersinh
@rajveersinh 3 жыл бұрын
Superb Video mem..Thank you
@sulectures2773
@sulectures2773 3 жыл бұрын
Thank-you ma'am
@rajbhardwaj2180
@rajbhardwaj2180 2 жыл бұрын
Hey how can I seen my query related to c progamming as mam doesn’t reply u can solve my numerical issue in c and c++?
@continnum_radhe-radhe
@continnum_radhe-radhe 2 жыл бұрын
Thanks a lot mam 🔥🔥🔥
@code1000
@code1000 3 жыл бұрын
mam when we take while(char) we get the output as the alphabets according to sky values, correct right?
@shrishpandey1754
@shrishpandey1754 3 жыл бұрын
It's not sky value bro it's ASCII
@rohitpawar3261
@rohitpawar3261 3 жыл бұрын
Mam , you work hard for us , thank so much 😊
@alokrana4629
@alokrana4629 2 жыл бұрын
Your teching so good
@rushikeshsanap1981
@rushikeshsanap1981 Жыл бұрын
Thank you jayanti ma'am
@sravanikandana4701
@sravanikandana4701 Жыл бұрын
Nice teaching mam
@VRoshiniEvanjelen
@VRoshiniEvanjelen Жыл бұрын
10:24 If the value of i is not initialized thn the values of i is printed frm 0 to 10 nd thn finally end of the program is printed.
@AJAYKUMAR-ti2dl
@AJAYKUMAR-ti2dl 3 жыл бұрын
Hello mam please make video in c++
@nithish9782
@nithish9782 3 жыл бұрын
Thankyou mam ,it is very useful
@rajeshpahi9923
@rajeshpahi9923 3 жыл бұрын
Mam i like your smile 😍
@elpediaarthurjunior720
@elpediaarthurjunior720 Жыл бұрын
When the condition for the while loop is ( i
@MAHESH-rf2uy
@MAHESH-rf2uy Жыл бұрын
no bro the output is End of the program
@Prasanna-im1zy
@Prasanna-im1zy Жыл бұрын
​@@MAHESH-rf2uyyes ofcourse
@adityakalra768
@adityakalra768 3 жыл бұрын
First one !! When we will reach Projects?!! Please do tell gui development with c
@meghasinha1706
@meghasinha1706 3 жыл бұрын
You are the best mammm
@babuas7566
@babuas7566 3 жыл бұрын
11:48 it prints 0 1 2 3 4 5 6 7 8 9 10 End of Program , mam
@richards8160
@richards8160 Жыл бұрын
No,it prints : End of program
@parthshroff7357
@parthshroff7357 Жыл бұрын
14:40 mam the output will be 0
@parthshroff7357
@parthshroff7357 Жыл бұрын
16:52 mam the output will be abcdefghijklmnopqrstuvwxyz{|}~.... and so on till a finite limit ASCII code is reached
@AnkitMishra-ys7fb
@AnkitMishra-ys7fb 3 жыл бұрын
Ma'am can you pls continue DAA course.😐 I got your DS tutorials really helpful. 💙💙
@asmitharamesh820
@asmitharamesh820 3 жыл бұрын
11:46 It prints infinite 0's mam
@janardhanarao8470
@janardhanarao8470 Жыл бұрын
I have a doubt pls clear me.At 7.00 what is the need to use while(1) .we can directly write printf statement after initialisation and then incrementation.then also we can get the desired output then why we need to use while (1)
@KeerthiGovindasu
@KeerthiGovindasu Жыл бұрын
thank you maam
C_39 Do while loop in C with program | C Programming Tutorials
8:23
Jenny's Lectures CS IT
Рет қаралды 187 М.
C_37 While Loop in C (part-1) | C Language Tutorials
12:21
Jenny's Lectures CS IT
Рет қаралды 265 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 651 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 906 М.
C_71 Pointers in C - part 1| Introduction to pointers in C | C Programming Tutorials
17:02
Solve Any Pattern Question With This Trick!
57:20
Kunal Kushwaha
Рет қаралды 2,5 МЛН
C_33 Introduction to Loop in C Language | Need of loops| C Language Tutorials
15:55
C_43 Need of Nested Loops in C | Nested For loop in C
18:31
Jenny's Lectures CS IT
Рет қаралды 659 М.
C_62 Strings in C - part 1 | C programming tutorials
15:41
Jenny's Lectures CS IT
Рет қаралды 538 М.
C_29 Nested If in C | C Programming Tutorials
15:07
Jenny's Lectures CS IT
Рет қаралды 232 М.
C_34 For loop in C  | C Programming Tutorials
11:34
Jenny's Lectures CS IT
Рет қаралды 398 М.
C_84 Introduction to Functions - part 1 | C Language Tutorials
25:27
Jenny's Lectures CS IT
Рет қаралды 1 МЛН