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

preview_player
Показать описание
In this lecture we will learn:
- What is do while loop in C?
- Syntax of do while loop
- working of do while loop
- Flowchart of do while loop
- difference between while and do while loop

*********************************************************
Connect & Contact Me:

*************************************************************

More Playlists:

#forloop #loop #cprogramming #coding #jennyslectures #whileloop
#dowhileloopinC
Рекомендации по теме
Комментарии
Автор

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

relax
Автор

Successfully completed 39 lectures in 1 day

geethasree-ptfi
Автор

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

jonasasare
Автор

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.

y_ff
Автор

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..

Baby.Yoda.knows.tech.
Автор

You are doing great job mam...may God bless u with good health .

ratiranjanjadav
Автор

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.

shraddhapawar
Автор

It will be printed till the range of integer

abhimanyugangwar
Автор

9:41
#include<stdio.h>

main() {
int i=0;
do{
printf ("\njenny");

}while (i>0);
printf("\n not ");
return 0;
} Output: Jenny printed infinity times

ruthrakaran
Автор

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.

harshvardhantandon
Автор

It will print upto the max positive value of computer..

mhamza
Автор

Thanks for your constant support maam, you are the reason why I started to love programming from being afraid of.

chiradeepbhattacharya
Автор

Jenny will be printed infinite times.
Thank you mam for this video

poornimavasu
Автор

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.

chiradeepbhattacharya
Автор

In love with this teaching mam❤ Thankyou for your efforts in teaching us flawlessly 💯

vengalasindhuja
Автор

I am running program easily thankyou mam

nirmalateju
Автор

if we use i++ in the loop it will become infinite loop

hariparuchuru
Автор

What a pin point accuracy teaching mam ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

singarigallapavankumar
Автор

very good explaination now get the point that do while will execute once without checking the

gowthamselvaraj
Автор

Nice explanation ma'ma .your teaching methods are just superb.

krishnakarpe