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
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
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.
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.
@@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 }
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
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.
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
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 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 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
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
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.
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.
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
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
Successfully completed 39 lectures in 1 day
😮
Fault
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..
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.
You are doing great job mam...may God bless u with good health .
Thanks for your constant support maam, you are the reason why I started to love programming from being afraid of.
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
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
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.
Jenny will be printed infinite times.
Thank you mam for this video
No infinite it will print up -32767 condition become false
In love with this teaching mam❤ Thankyou for your efforts in teaching us flawlessly 💯
9:41
#include
main() {
int i=0;
do{
printf ("
jenny");
}while (i>0);
printf("
not ");
return 0;
} Output: Jenny printed infinity times
What a pin point accuracy teaching mam ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
It will be printed till the range of integer
Such a very nice explanation in all lectures without taking any fees.thanks a lot god bless you.stay happy forever
Nice explanation ma'ma .your teaching methods are just superb.
It will print upto the max positive value of computer..
Thankyou i am going to giving my viva with the help of your videos
very good explaination now get the point that do while will execute once without checking the condition.....
I am running program easily thankyou mam
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
Hi mam you are awesome superb thank you so much we learn a lot in this subject ❤
Really Great GOD BLESS YOU Mam
assignment:
Jenny would be printed infinite times
no
respect from pakistan ma'am your are very decent and intelligent
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 very very thank you for your free lectures . It is amazing
Mam please explain of c++ Program concepts
Such a great lecture mam love you lot mam♥️😘I understand depth in c programming
Thank you so so much ma'am for cleaning concept of do while loop
Starts at 2:00
GOD FOR AVERAGE STUDENTS ❤❤❤🎉🎉🎉🎉
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
वाह मैडम जी वाह समझ में आ गया नमस्ते
at 9:48
it will print infinite times jenney
Very helpful mam..
mam please make a video on time complexity. You are doing great job mam your video lecture are so helpful...................
Mam parallely start c++ course.......🙏🙏🙏
Mam iske baad c++ ka course bhi upload krdo please please...!!
Apna number send kar na
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
Definatly It is an infinte loop !
Pls make video for algorithm mam..
jenny mam without writting do if we write print statements then after while loop liketho(i think it may same as do while loop)
Thank you jayanti ma'am
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
Nice ma'am... Tq so much
Could you please make a video on continue keyword in C
please upload a placement series
Thank you mam
very helpful video
Nice explanation ma'am
thank you very much..
looking very nice mam i cannot learn coding......
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
9:39 128 times "Jenny" will be printed mam.
Thanks you 🙏🙏🙏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.
Tq akka
#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..
Answer infinity
9:47 system will print jenny infinite times
Jenny is printed 32768 times then out of loop
Mam plz tell me which language is best
thank you maam
Yes ma'am ... Please reach us c++
At 9:39 it will go through range then when i becomes 0 it stops and prints out of loop
Superb mam
Mam your teaching way is beautiful 🌺🌹 and you are also so much beautiful 🌺🌺🙏🙏
mam i think we use i++ at loop ,we get a infinite ....pls reply it is correct are not?
Hello mam
Please tell better book for data structure
mam its infinate loop because condition 1 >0
8:8 infinte times
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
Mam yha pe increment kaise ho rha hai ye samjh me nhi aaya last example wale mei ye infinite loop kaise ho rha hai??
9:44
Jenny will be printed 65536 times
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.
Mam. Please explain pattern programs in C
Tq so much mam
Mam very 😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀Iam big fan of you mam
int i = 0;
do
{
printf("%d
" , i);
i++;
}while (i>0);
printf ("out of loop");
return 0;
}
output - infinite loop
No it can't print infinite times because it is post incriment so it prints only one time.
@@mitulprajapati4654 no it's print infinite times bro because ,if single i++ is always increment continuosly it would be rather i++ or++i
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
Answer is genny would be printed 1 time if there is I++
Mam what's the purpose of do
Mam start uploading c++ course also
if we use i++ it will give infinie times jenny
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
32768 times jenny would be printed
Mam what is use of doing programming
Mam can u plz give lectures on core Java I'm from Haryana
Make can you please tell me your plan that which next programming languages you will start teaching
Like Python C++ etc
Jenny will be printed infinite times
nice video
while(i>0); if while loop its no give the error...
int i=0;
do
{
printf("Jenny");
i++;
}while(i>0);
printf("Out of loop);
the output will be printed once:
"Jenny out of loop"
32767 time the statement should be printed
It is finite
answer of your last question is jenny printed infinite time this is a infinite loop.
infinited times the loop i++