Video není dostupné.
Omlouváme se.
C_39 Do while loop in C with program | C Programming Tutorials
Vložit
- čas přidán 21. 01. 2021
- 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
C Programming Playlist: • Programming in C
*********************************************************
Connect & Contact Me:
Jenny's Lecture Hindi: / @jennyslectureshindi
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
*************************************************************
More Playlists:
C++ Tutorials for beginners: • Lec 1: How to Install ...
Best Python Tutorials for Beginners: • Python - Basic to Advance
Printing Pattern in C: • Printing Pattern Progr...
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...
#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
Yes
👌
very nice frnd 🎀
nice man
Soopar bro
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
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.
🙏
Loop ends and it also prints out of loop
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
@@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
@@tattikumar8727 condition will be false when I becomes -32768
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.
Successfully completed 39 lectures in 1 day
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..
You are doing great job mam...may God bless u with good health .
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.
Can u pls explain, how?
@@asthachauhan4470 it will reach till 32767 and then it becomes -32768 and it will come out of loop
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????
@@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
}
@@harshgoyal3553 technically is correct as the data type int range from -32768 to 32767 but it's count to be infinity
if we use i++ in the loop it will become infinite loop
Yes
Yes
Yes
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
L
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.
9:41
#include
main() {
int i=0;
do{
printf ("
jenny");
}while (i>0);
printf("
not ");
return 0;
} Output: Jenny printed infinity times
Jenny will be printed infinite times.
Thank you mam for this video
No infinite it will print up -32767 condition become false
Thanks for your constant support maam, you are the reason why I started to love programming from being afraid of.
It will be printed till the range of integer
assignment:
Jenny would be printed infinite times
no
What a pin point accuracy teaching mam ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
In love with this teaching mam❤ Thankyou for your efforts in teaching us flawlessly 💯
It will print upto the max positive value of computer..
Starts at 2:00
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.
no, it prints "jenny " infinite times.
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
I am running program easily thankyou mam
Mam according to code blocks's IDE it is an infinite loop if we put condition i>0
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.
At 9:45
If we use short int then range would be -32768 to 32767
So it prints 32767 times
I from Pakiatan
I am a programmer But Ma'am I have also like your lecture
Hello brother ❤️ from India
Hi mam you are awesome superb thank you so much we learn a lot in this subject ❤
Thankyou i am going to giving my viva with the help of your videos
Tq akka
Nice explanation ma'ma .your teaching methods are just superb.
Mam parallely start c++ course.......🙏🙏🙏
Such a very nice explanation in all lectures without taking any fees.thanks a lot god bless you.stay happy forever
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
respect from pakistan ma'am your are very decent and intelligent
very good explaination now get the point that do while will execute once without checking the condition.....
GOD FOR AVERAGE STUDENTS ❤❤❤🎉🎉🎉🎉
Really Great GOD BLESS YOU Mam
Mam please explain of c++ Program concepts
Such a great lecture mam love you lot mam♥️😘I understand depth in c programming
jenny mam without writting do if we write print statements then after while loop liketho(i think it may same as do while loop)
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
Mam iske baad c++ ka course bhi upload krdo please please...!!
Apna number send kar na
#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..
Thank you so so much ma'am for cleaning concept of do while loop
Mam very very thank you for your free lectures . It is amazing
Pls make video for algorithm mam..
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
Very helpful mam..
वाह मैडम जी वाह समझ में आ गया नमस्ते
Could you please make a video on continue keyword in C
at 9:48
it will print infinite times jenney
mam please make a video on time complexity. You are doing great job mam your video lecture are so helpful...................
please upload a placement series
Definatly It is an infinte loop !
Thank you jayanti ma'am
Jenny is printed 32768 times then out of loop
Excellent 👌 lecture
At 9:39 it will go through range then when i becomes 0 it stops and prints out of loop
Thank you mam
very helpful video
Thanks you 🙏🙏🙏mam
9:47 system will print jenny infinite times
thank you very much..
Nice ma'am... Tq so much
32768 times jenny would be printed
looking very nice mam i cannot learn coding......
Nice explanation ma'am
Thank you so much
Since we are incrementing using i++ in a do while loop which executes the statement block before reaching at the condition, it will result into an infinite loop.
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
Answer infinity
9:39 128 times "Jenny" will be printed mam.
thank you maam
Mam your teaching way is beautiful 🌺🌹 and you are also so much beautiful 🌺🌺🙏🙏
Mam what would be the correct answer? Is it run infinite time or show some error ? Please tell me mam ...
it would print jenny infinite times
because the condition as no termination so
It prints : Jenny Jenny Jenny Jenny (infinity) time print.
Aur hello world???
Bhai hello bhi print hote jayega na??
Q ki condition condition true hai
Tq so much mam
Yes ma'am ... Please reach us c++
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
Jenny'll printed 65535times
Superb mam
Mam yha pe increment kaise ho rha hai ye samjh me nhi aaya last example wale mei ye infinite loop kaise ho rha hai??
Mam, sorry but you are so beautiful ❤️ really so beautiful woman ❤️🔥🔥🔥
@@evanflair5354 you can understand 😎
@@aashishkumar5520 U aim something ??
@@aashishkumar5520 pervs
Nhi degi.....
Ye boii
Answer is genny would be printed 1 time if there is I++
Thanks mam
mam i think we use i++ at loop ,we get a infinite ....pls reply it is correct are not?
Jenny will be printed infinite times
Mam very 😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀Iam big fan of you mam
Finite loop
infinited times the loop i++
mam its infinate loop because condition 1 >0
It is finite
9:44
Jenny will be printed 65536 times
Mam. Please explain pattern programs in C
Thanks didi
if we use i++ it will give infinie times jenny
It's become infinite mam
Hello mam
Please tell better book for data structure
notes chahiye
Mam start uploading c++ course also
while(i>0); if while loop its no give the error...
Super
Nice...