C_39 Do while loop in C with program | C Programming Tutorials

  Рет қаралды 187,935

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

Пікірлер: 269
@relax4523
@relax4523 2 жыл бұрын
9:44 it would be a finite loop Firstly i =0 the it enters the loop Jenny would be printed then the value of i would be incremented(i=1) and condition is checked.since condition (i>0) is true the body of the loop is executed again.so Jenny would be printed again until the i value reach 32767.the value is incremented again the i would be equal to -32768(since range of signed integer is from -32768 to 32767).so condition will be false(-32768 is less than 0) and it exists the loop.then prints out of loop
@ourculture7079
@ourculture7079 2 жыл бұрын
Yes
@madhurikamitikari6102
@madhurikamitikari6102 Жыл бұрын
👌
@jashankaur3726
@jashankaur3726 Жыл бұрын
very nice frnd 🎀
@PSPK_3105
@PSPK_3105 Жыл бұрын
nice man
@anuradhaKurimina-fp1ve
@anuradhaKurimina-fp1ve Жыл бұрын
Soopar bro
@jonasasare5775
@jonasasare5775 3 жыл бұрын
I just don't know how this amazing course in programming is free. You always explain to a layman understanding, Thank you for always bringing us awesome lectures
@geethasree-pt2fi
@geethasree-pt2fi 11 ай бұрын
Successfully completed 39 lectures in 1 day
@Karanam.vijaykiran
@Karanam.vijaykiran 3 ай бұрын
😮
@PrashanthReddy-123
@PrashanthReddy-123 2 ай бұрын
Fault
@neharao5233
@neharao5233 Ай бұрын
damnnnnn i finished 39 lectures in 3 weeks 🙄
@withXDGAMER
@withXDGAMER 28 күн бұрын
@@neharao5233 I reached here in 2 months 😞😔
@subeesht1805
@subeesht1805 8 күн бұрын
Wow!! Good job! Hardly 5 video's/day here😄
@y1_ff
@y1_ff Жыл бұрын
9:44, a finite loop is initiated. Initially, `i` is set to 0, and the loop begins execution. In the first iteration, "Jenny" is printed, and then `i` is incremented (i = 1). The condition is checked, and since the condition `(i > 0)` is true, the loop body is executed again. This continues, printing "Jenny" repeatedly until the value of `i` reaches 32,767. Upon incrementing further, `i` becomes -32,768 (as the range of signed integers is from -32,768 to 32,767). At this point, the condition becomes false (`-32,768` is less than `0`), and the loop exits. Finally, "Out of loop" is printed.
@ratiranjanjadav2929
@ratiranjanjadav2929 3 жыл бұрын
You are doing great job mam...may God bless u with good health .
@Baby.Yoda.knows.tech.
@Baby.Yoda.knows.tech. 3 жыл бұрын
Mam my whole college studies from you.. And today when i was returning back to home by bus... Some students from other colleges were talking about u..
@harshvardhantandon8278
@harshvardhantandon8278 3 жыл бұрын
9:30 this will be a finite loop till the range of integer hence in a 16-bit compiler jenny would be printed 65536 times till the value returns to be zero.
@asthachauhan4470
@asthachauhan4470 2 жыл бұрын
Can u pls explain, how?
@harshgoyal3553
@harshgoyal3553 2 жыл бұрын
@@asthachauhan4470 it will reach till 32767 and then it becomes -32768 and it will come out of loop
@jeelanibasha3984
@jeelanibasha3984 2 жыл бұрын
but first the value should have to assign it means the value of i is to be 0 first it will unsatisfy and gets out of the rule????
@YashPavaskar
@YashPavaskar 2 жыл бұрын
@@jeelanibasha3984 {at initial stage i is zero as we proceed in do loop Jenny will be printed for the first And then increment will take place So it trend to implement i value to 1 Then as we proceed to while loop As per condition (i>0) Since i is 1 and 1 is greater than zero So the condition is true And it will execute the statement inside do loop *Jenny* till infinity as i goes on incrementing and since condition is true every time }
@YashPavaskar
@YashPavaskar 2 жыл бұрын
@@harshgoyal3553 technically is correct as the data type int range from -32768 to 32767 but it's count to be infinity
@ruthrakaran
@ruthrakaran 3 жыл бұрын
9:41 #include main() { int i=0; do{ printf (" jenny"); }while (i>0); printf(" not "); return 0; } Output: Jenny printed infinity times
@shraddhapawar5674
@shraddhapawar5674 3 жыл бұрын
It's not a infinite loop, It will print the Jenny upto 32767, and when i becomes negative ie is -32768 then the loop end.
@walkwithme_P62
@walkwithme_P62 3 жыл бұрын
🙏
@Abii_r
@Abii_r 3 жыл бұрын
Loop ends and it also prints out of loop
@Udtashaitaan
@Udtashaitaan 3 жыл бұрын
Output:1 jenny 2 Out of the loop Becouse here we use postincrement so first we check the condition on 0 and the condition is false and we out of the loop
@tattikumar8727
@tattikumar8727 3 жыл бұрын
@@Udtashaitaan no 1st of all it will do increment and then it will check condition which would never come false so it will definitely be an infinite loop
@relax4523
@relax4523 2 жыл бұрын
@@tattikumar8727 condition will be false when I becomes -32768
@poornimavasu8020
@poornimavasu8020 2 жыл бұрын
Jenny will be printed infinite times. Thank you mam for this video
@surya..g
@surya..g Жыл бұрын
No infinite it will print up -32767 condition become false
@chiradeepbhattacharya4858
@chiradeepbhattacharya4858 3 жыл бұрын
Thanks for your constant support maam, you are the reason why I started to love programming from being afraid of.
@adityabikramjena4584
@adityabikramjena4584 2 жыл бұрын
Starts at 2:00
@singarigallapavankumar4724
@singarigallapavankumar4724 3 жыл бұрын
What a pin point accuracy teaching mam ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
@gokul-since2005
@gokul-since2005 8 ай бұрын
GOD FOR AVERAGE STUDENTS ❤❤❤🎉🎉🎉🎉
@vengalasindhuja9484
@vengalasindhuja9484 Жыл бұрын
In love with this teaching mam❤ Thankyou for your efforts in teaching us flawlessly 💯
@chiradeepbhattacharya4858
@chiradeepbhattacharya4858 3 жыл бұрын
Maam its my humble request on the behest of fellow aspirants like us,please upload video with regard to JAVA & PYTHON & other nitty gritty of CSE.Please do help us with your incredible knowledge.
@tulakchowdhury4906
@tulakchowdhury4906 3 жыл бұрын
assignment: Jenny would be printed infinite times
@pool_dead3961
@pool_dead3961 Жыл бұрын
no
@nirmalateju2436
@nirmalateju2436 7 ай бұрын
I am running program easily thankyou mam
@AnuB-y2b
@AnuB-y2b Жыл бұрын
Hi mam you are awesome superb thank you so much we learn a lot in this subject ❤
@abhimanyugangwar07
@abhimanyugangwar07 2 жыл бұрын
It will be printed till the range of integer
@fakharudin1289
@fakharudin1289 3 жыл бұрын
respect from pakistan ma'am your are very decent and intelligent
@krishnakarpe409
@krishnakarpe409 3 жыл бұрын
Nice explanation ma'ma .your teaching methods are just superb.
@Prasanna-im1zy
@Prasanna-im1zy Жыл бұрын
At 9:45 If we use short int then range would be -32768 to 32767 So it prints 32767 times
@DCEAsmaIqbal
@DCEAsmaIqbal 3 жыл бұрын
Thankyou i am going to giving my viva with the help of your videos
@amanprakashnigam5933
@amanprakashnigam5933 3 жыл бұрын
वाह मैडम जी वाह समझ में आ गया नमस्ते
@singarigallapavankumar4724
@singarigallapavankumar4724 3 жыл бұрын
Really Great GOD BLESS YOU Mam
@gowthamselvaraj7793
@gowthamselvaraj7793 Жыл бұрын
very good explaination now get the point that do while will execute once without checking the condition.....
@mhamza8317
@mhamza8317 2 жыл бұрын
It will print upto the max positive value of computer..
@dishantitaliya1912
@dishantitaliya1912 2 жыл бұрын
Such a very nice explanation in all lectures without taking any fees.thanks a lot god bless you.stay happy forever
@siddhartharaj8451
@siddhartharaj8451 3 жыл бұрын
at 9:48 it will print infinite times jenney
@greyhat5204
@greyhat5204 3 жыл бұрын
Mam according to code blocks's IDE it is an infinite loop if we put condition i>0
@saurabhsharma2467
@saurabhsharma2467 4 ай бұрын
It's because of value of int it will automatically takes signed integer that's why it's running infinite times its range is -2147483648 to 2147483647 that's why.
@bilalsportsryk
@bilalsportsryk 3 жыл бұрын
I from Pakiatan I am a programmer But Ma'am I have also like your lecture
@priyanshuhurmade8626
@priyanshuhurmade8626 3 жыл бұрын
Hello brother ❤️ from India
@hariparuchuru3858
@hariparuchuru3858 2 жыл бұрын
if we use i++ in the loop it will become infinite loop
@indranilbhattacharjee201
@indranilbhattacharjee201 2 жыл бұрын
Yes
@aemanmustafa7296
@aemanmustafa7296 2 жыл бұрын
Yes
@krishnamanchala6280
@krishnamanchala6280 2 жыл бұрын
Yes
@NipunRawat08
@NipunRawat08 Жыл бұрын
I guess as she taught the integer has a limited value raging from about 39000 to -39000 so the loop will be a finite loop. it may appear like a infinite loop but it will be terminated at some pouint according to value of the datatype
@nimishas7704
@nimishas7704 Жыл бұрын
L
@DineshKumar-uu5pr
@DineshKumar-uu5pr 3 жыл бұрын
Such a great lecture mam love you lot mam♥️😘I understand depth in c programming
@himanshu-x8s6b
@himanshu-x8s6b Ай бұрын
thank you mam
@sandeshv6721
@sandeshv6721 3 жыл бұрын
Very helpful mam..
@pavanyegireddy6957
@pavanyegireddy6957 2 жыл бұрын
Mam very very thank you for your free lectures . It is amazing
@malleshsanju5235
@malleshsanju5235 3 жыл бұрын
Mam please explain of c++ Program concepts
@neverstoplearning3451
@neverstoplearning3451 2 жыл бұрын
Thank you so so much ma'am for cleaning concept of do while loop
@DeepakKumar-nk3cv
@DeepakKumar-nk3cv 3 жыл бұрын
Mam parallely start c++ course.......🙏🙏🙏
@maheshkumar-tx7hz
@maheshkumar-tx7hz 2 жыл бұрын
jenny mam without writting do if we write print statements then after while loop liketho(i think it may same as do while loop)
@singarigallapavankumar4724
@singarigallapavankumar4724 3 жыл бұрын
Mam very 😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀Iam big fan of you mam
@maryannemuthoni5388
@maryannemuthoni5388 Жыл бұрын
At 9:39 it will go through range then when i becomes 0 it stops and prints out of loop
@pushpaka.fasate6170
@pushpaka.fasate6170 3 жыл бұрын
mam please make a video on time complexity. You are doing great job mam your video lecture are so helpful...................
@Akhilkanaboina
@Akhilkanaboina 2 жыл бұрын
Definatly It is an infinte loop !
@nagendrachariramadugu5342
@nagendrachariramadugu5342 2 жыл бұрын
Since the value of i is incremented after the execution of the line,the condition becomes false ,since the the loop "do while",the body of the loop is executed before the condition gets executed.Hence, the printf statement inside the loop prints the text given by the programmer,for once.As soon as the task gets done,the controller will directly exits the loop, because the condition doesnot match the modified statement.
@vrengineers2462
@vrengineers2462 2 жыл бұрын
no, it prints "jenny " infinite times.
@crazywiper3908
@crazywiper3908 Жыл бұрын
no it prints jenny 32767 times then stops because after this it becomes -32768 so as this number is less than 0 and condition is false it stops. so it prints jenny 32767 times and stops
@rushikeshsanap1981
@rushikeshsanap1981 Жыл бұрын
Thank you jayanti ma'am
@abhishekvanenooru4959
@abhishekvanenooru4959 2 жыл бұрын
Tq akka
@Photoholic_Girl_1
@Photoholic_Girl_1 3 жыл бұрын
Pls make video for algorithm mam..
@psyc_taste9616
@psyc_taste9616 3 жыл бұрын
9:47 system will print jenny infinite times
@kalpanasahu9460
@kalpanasahu9460 3 жыл бұрын
Mam iske baad c++ ka course bhi upload krdo please please...!!
@mohitmanoj4436
@mohitmanoj4436 3 жыл бұрын
Apna number send kar na
@dharmendrasharma9317
@dharmendrasharma9317 3 жыл бұрын
Mam your teaching way is beautiful 🌺🌹 and you are also so much beautiful 🌺🌺🙏🙏
@shayanali8771
@shayanali8771 3 жыл бұрын
Could you please make a video on continue keyword in C
@kasyapdharanikota8570
@kasyapdharanikota8570 3 жыл бұрын
please upload a placement series
@birsakumhar7240
@birsakumhar7240 2 жыл бұрын
Thank you mam very helpful video
@sulectures2773
@sulectures2773 3 жыл бұрын
Nice ma'am... Tq so much
@slemankhan9533
@slemankhan9533 2 жыл бұрын
looking very nice mam i cannot learn coding......
@parthshroff7357
@parthshroff7357 Жыл бұрын
9:39 128 times "Jenny" will be printed mam.
@achintyaroy1084
@achintyaroy1084 2 жыл бұрын
thank you very much..
@Pushpachelikani
@Pushpachelikani Ай бұрын
Infinite!
@balanjaneyasharma4347
@balanjaneyasharma4347 3 жыл бұрын
Excellent 👌 lecture
@pradumnpatel5047
@pradumnpatel5047 3 жыл бұрын
Thanks you 🙏🙏🙏mam
@mysterious8198
@mysterious8198 3 жыл бұрын
Nice explanation ma'am
@suryatej2573
@suryatej2573 2 жыл бұрын
Madam your lectures helped me a lot to prepare for off campus placements here I need ur suggestion for websites or jobportals for data analyst because I'm looking for data analyst profile I hope u would give few suggestions
@rameshejjigani8950
@rameshejjigani8950 Жыл бұрын
It will prints the jenny up to int value and after it goes mines and finally compared some interactions the zero will comes and loop will break
@varunchaudhary6446
@varunchaudhary6446 3 жыл бұрын
Superb mam
@sourav9352
@sourav9352 Жыл бұрын
Mam yha pe increment kaise ho rha hai ye samjh me nhi aaya last example wale mei ye infinite loop kaise ho rha hai??
@143nivvytechchannel6
@143nivvytechchannel6 2 жыл бұрын
nice video
@AKASHAKASH-sp4yd
@AKASHAKASH-sp4yd 2 жыл бұрын
mam i think we use i++ at loop ,we get a infinite ....pls reply it is correct are not?
@udaysinghrana5725
@udaysinghrana5725 2 жыл бұрын
9:44 Jenny will be printed 65536 times
@chohan2253
@chohan2253 Жыл бұрын
but I am observing an infinite loop in vs code I don't understand what is the issue. Even in some similar tutorials before I was getting infinite loops
@Preethi-e7w
@Preethi-e7w 22 сағат бұрын
Mam what is the difference while,for and do while loop
@ifhammohamed1955
@ifhammohamed1955 2 жыл бұрын
#include int main() { int i=0 , a; do { printf("Jenny%d",a); i++; a++; }while(i>0); printf("this is infinite loop"); } >>>this is infinite loop mam..
@rajeshkumar-uk2jo
@rajeshkumar-uk2jo 2 жыл бұрын
Tq so much mam
@AJAYKUMAR-ti2dl
@AJAYKUMAR-ti2dl 3 жыл бұрын
Hello mam Please tell better book for data structure
@singarigallapavankumar4724
@singarigallapavankumar4724 3 жыл бұрын
Mam could yourself please make a videos on machine learning, Artificial Intelligence,data science, natural language processing please please please please please please please please please please please please
@473g.koteswaraiah3
@473g.koteswaraiah3 3 жыл бұрын
Mam what is use of doing programming
@siddeshwaragencybasavaraj7605
@siddeshwaragencybasavaraj7605 3 жыл бұрын
Yes ma'am ... Please reach us c++
@premraj1456
@premraj1456 3 жыл бұрын
Thanks mam
@crazythinkers642
@crazythinkers642 2 ай бұрын
8:8 infinte times
@mamoonkhan490
@mamoonkhan490 3 жыл бұрын
mam when we write i++ in do loop then it will print infinite
@abhayamoharana9297
@abhayamoharana9297 3 жыл бұрын
Mam plz tell me which language is best
@bhosleakash______96k81
@bhosleakash______96k81 3 жыл бұрын
Super ❤️❤️❤️❤️
@challarekha3309
@challarekha3309 Жыл бұрын
Mam what's the purpose of do
@vamshibhumani4742
@vamshibhumani4742 2 жыл бұрын
Super
@sudhirkundurthi5150
@sudhirkundurthi5150 3 жыл бұрын
Mam start uploading c++ course also
@nagapilla1452
@nagapilla1452 3 жыл бұрын
Nice...
@RakeshSharma-yx3wb
@RakeshSharma-yx3wb 2 жыл бұрын
Answer infinity
@sayansaha5326
@sayansaha5326 2 жыл бұрын
Thanks didi
@nikhilsavita4084
@nikhilsavita4084 3 жыл бұрын
First view 😍
@SANDEEP_388
@SANDEEP_388 3 жыл бұрын
Mam what would be the correct answer? Is it run infinite time or show some error ? Please tell me mam ...
@swathisb5191
@swathisb5191 3 жыл бұрын
it would print jenny infinite times because the condition as no termination so
@ayushvats7279
@ayushvats7279 3 жыл бұрын
notes chahiye
@Asthaticgirl24
@Asthaticgirl24 22 күн бұрын
Mam have you made vedio on HTML ...
@741ibrahim2
@741ibrahim2 3 жыл бұрын
mam its infinate loop because condition 1 >0
@rishavvats9038
@rishavvats9038 3 жыл бұрын
only one time i guess because the moment it will be one it will check the condition which is false and it will get out of loop
@brindhavenugopal4395
@brindhavenugopal4395 3 жыл бұрын
Mam. Please explain pattern programs in C
@Ravi44446
@Ravi44446 3 жыл бұрын
Mam can u plz give lectures on core Java I'm from Haryana
@AbhishekKumar-qj2qh
@AbhishekKumar-qj2qh Жыл бұрын
if we use i++ it will give infinie times jenny
@TechieAman
@TechieAman 3 жыл бұрын
Make can you please tell me your plan that which next programming languages you will start teaching Like Python C++ etc
@aashrithaganga7492
@aashrithaganga7492 2 жыл бұрын
Jenny is printed 32768 times then out of loop
C_37 While Loop in C (part-1) | C Language Tutorials
12:21
Jenny's Lectures CS IT
Рет қаралды 265 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
C_41 Break statement in C | C Language Tutorials
13:51
Jenny's Lectures CS IT
Рет қаралды 180 М.
C_38 While Loop in C (part-2) | C Language Tutorials
18:33
Jenny's Lectures CS IT
Рет қаралды 165 М.
C_43 Need of Nested Loops in C | Nested For loop in C
18:31
Jenny's Lectures CS IT
Рет қаралды 659 М.
C_34 For loop in C  | C Programming Tutorials
11:34
Jenny's Lectures CS IT
Рет қаралды 398 М.
C_31 Switch Statement In C | C Programming Tutorials
22:48
Jenny's Lectures CS IT
Рет қаралды 308 М.
C_33 Introduction to Loop in C Language | Need of loops| C Language Tutorials
15:55
C_29 Nested If in C | C Programming Tutorials
15:07
Jenny's Lectures CS IT
Рет қаралды 232 М.
C_35 Properties of For loop in C | C Programming Tutorials
26:58
Jenny's Lectures CS IT
Рет қаралды 254 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
Control Statements in C - while loop | C Language Tutorial
18:41
Naresh i Technologies
Рет қаралды 603 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН