C_39 Do while loop in C with program | C Programming Tutorials
Вставка
- Опубліковано 21 січ 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/profile/Jayanti...
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
Successfully completed 39 lectures in 1 day
You are doing great job mam...may God bless u with good health .
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.
Nice explanation ma'ma .your teaching methods are just superb.
Thanks for your constant support maam, you are the reason why I started to love programming from being afraid of.
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..
In love with this teaching mam❤ Thankyou for your efforts in teaching us flawlessly 💯
Such a great lecture mam love you lot mam♥️😘I understand depth in c programming
What a pin point accuracy teaching mam ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
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.
Thank you so so much ma'am for cleaning concept of do while loop
Really Great GOD BLESS YOU Mam
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
Mam very very thank you for your free lectures . It is amazing
Mam according to code blocks's IDE it is an infinite loop if we put condition i>0
Thankyou i am going to giving my viva with the help of your videos
mam please make a video on time complexity. You are doing great job mam your video lecture are so helpful...................
Excellent 👌 lecture
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
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
Nice ma'am... Tq so much
very good explaination now get the point that do while will execute once without checking the condition.....
Thank you mam
very helpful video
Very helpful mam..
Such a very nice explanation in all lectures without taking any fees.thanks a lot god bless you.stay happy forever
Nice explanation ma'am
Could you please make a video on continue keyword in C
thank you very much..
Thank you so much
assignment:
Jenny would be printed infinite times
no
At 9:45
If we use short int then range would be -32768 to 32767
So it prints 32767 times
It will be printed till the range of integer
वाह मैडम जी वाह समझ में आ गया नमस्ते
jenny mam without writting do if we write print statements then after while loop liketho(i think it may same as do while loop)
Mam please explain of c++ Program concepts
thank you maam
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
Thanks you 🙏🙏🙏mam
Hello mam
Please tell better book for data structure
Hi mam you are awesome superb thank you so much we learn a lot in this subject ❤
Pls make video for algorithm mam..
Definatly It is an infinte loop !
respect from pakistan ma'am your are very decent and intelligent
Tq akka
Mam what is use of doing programming
Superb mam
mam when we write i++ in do loop then it will print infinite
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
Thanks mam
Jenny will be printed infinite times.
Thank you mam for this video
No infinite it will print up -32767 condition become false
Mam your teaching way is beautiful 🌺🌹 and you are also so much beautiful 🌺🌺🙏🙏
Thank you jayanti ma'am
Mam. Please explain pattern programs in C
mam i think we use i++ at loop ,we get a infinite ....pls reply it is correct are not?
I am running program easily thankyou mam
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
Tq so much mam
Mam plz tell me which language is best
please upload a placement series
It will print upto the max positive value of computer..
Mam yha pe increment kaise ho rha hai ye samjh me nhi aaya last example wale mei ye infinite loop kaise ho rha hai??
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
Mam parallely start c++ course.......🙏🙏🙏
Mam can u plz give lectures on core Java I'm from Haryana
mam its infinate loop because condition 1 >0
looking very nice mam i cannot learn coding......
Super ❤️❤️❤️❤️
Nice...
At 9:39 it will go through range then when i becomes 0 it stops and prints out of loop
Thanks didi
Mam what's the purpose of do
Dear why don't you make tutorial on java ?..
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
Starts at 2:00
at 9:48
it will print infinite times jenney
Mam start uploading c++ course also
I from Pakiatan
I am a programmer But Ma'am I have also like your lecture
Hello brother ❤️ from India
Yes ma'am ... Please reach us c++
nice video
Super
if we use i++ it will give infinie times jenny
🔥🔥🔥
while(i>0); if while loop its no give the error...
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
Make can you please tell me your plan that which next programming languages you will start teaching
Like Python C++ etc
notes chahiye
Mam very 😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀Iam big fan of you mam
Jenny would be printed infinite time because of increment operator
Madam y u r taken char data in integer data type , in ex
9:47 system will print jenny infinite times
Answer infinity
Answer is genny would be printed 1 time if there is I++
Mam iske baad c++ ka course bhi upload krdo please please...!!
Apna number send kar na
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.
GOD FOR AVERAGE STUDENTS ❤❤❤🎉🎉🎉🎉
Finite loop
Infinite loop mam for assignment question