This must be the mother of all lectures on for loops in C. Thank you so much for going through the detail and possible cases!!!
@shrinivassonune14652 жыл бұрын
#include #include void main() { int i,j; clrscr(); for(i=1,j=0 ; i
@shrinivassonune14652 жыл бұрын
#include #include void main() { int i,j; clrscr(); for(i=1,j=0 ; i
@ruthtef42273 жыл бұрын
I am so happy to come across your KZbin channel. It is very helpful. you are very incredible. The way you express everything in detail and pointing out all the possibilities are fantastic. and please also keep using English in all your videos. You make all the abstract idea concrete. Thank you so much. keep up the good work.
@harisarain5568 Жыл бұрын
big respect and big love from pakistan islamabad i an curently styding in the prestigeous uni of pakistan which kniwn as the top uni of pakistan FAST (NUCES) , but no such teacher really big love from pakistan
@fatimaahmad57342 жыл бұрын
I am learning c++ but i always watch your videos. It helps me clear my concepts.
@kameshpatil42312 жыл бұрын
23:35 it will print jenny for infinite times not only for 4 times since no modification is made through expression 3
@mars84992 жыл бұрын
Yes. True
@lalithadwarapureddi32832 жыл бұрын
Yes
@VictoryVibe03 Жыл бұрын
Ya..👍🏻
@redrose59503 жыл бұрын
Extremely significant lecture, thanks alot for your efforts. You are a wonderful teacher.
@gamingislove81204 жыл бұрын
I have passed Data structure paper by just watching ur vedios thanks mam😎
@SN-edits4u Жыл бұрын
15:48 there'll be no output as condition will be false, since we initialised i=1 and condition is i==10, so it will come out of the loop with even single iteration.
@vandanakedari3196 Жыл бұрын
it may be infinte loop
@Chigo-nr8jg Жыл бұрын
there will be output as == is a relational perator. it will work fine.
@yuvrajprajapati6549 Жыл бұрын
bro can you help me because i think that as i==10 and there is a condition which says i
@nakkatejanagasri7945 Жыл бұрын
@@yuvrajprajapati6549what is the value of j
@sangharshtakale28247 ай бұрын
@@nakkatejanagasri7945 0
@shahdarshil12272 жыл бұрын
Mam u are just awesome 😊 I learn c very easily from your videos, thnx for making such a informative and easy to understand lectures. Thank you!!❤️
@Anonymous_EngineerX2 жыл бұрын
A very amazing season mam I search this topic on u tube but your video are awesome All concept clear thanks mam👍👍👍👍👍👍👍👍👍👍❤️❤️❤️❤️❤️❤️
@isaac-victorshonowo1838 Жыл бұрын
@27:42 Answer is 17. @28:28 Answer is I think it should print 321 (I have a feeling I'm so wrong though). Watched and Understood ❤
@pavankalyandandavathkar95683 жыл бұрын
Thank you so much madam😊, you cleared all my doubts regarding to the for loop
@debadritadebnath32254 жыл бұрын
Thank you so much for this video ma'am. My all doubts regarding for loop got cleared. There's a request from my end ma'am. Actually in C Programming I don't know pointer and structure very well. If you make such informative video on these topics like this video, it will be really helpful ma'am. I'm genuinely following your C Programming course and eagerly waiting for upcoming stuffs and specially pointer and structure.
@alarezomoosamuyi8526 Жыл бұрын
In 27:25, the forloop for (i = 1, j = 0; i < 5, j
@howler-zu8xr Жыл бұрын
I am also using gcc compiler but no error in my case.. Output - i=1 j=7
@alarezomoosamuyi8526 Жыл бұрын
@@howler-zu8xr okay, I'll retry it..
@itx_que3nie384 ай бұрын
@@alarezomoosamuyi8526 compiler gives you error because you use semicolon after for function .
@varunkushwaha-b1g2 ай бұрын
bhai kaam kar joh i or j hai voh tu for loop ke bhar sirf declare kr intialise maat krna bas declare kr ajyega output
@ShubhamSingh-cd1jf4 жыл бұрын
Thanku Mam For Data Structures Playlist . I learned basics from the starting videos of that playlist . Now I only see the title of the video and make the whole program by myself . And also all program made by me worked fine . Thanku Mam for all your efforts .
@vaibhavbatra7013 жыл бұрын
Bro can you help me i have a doubt.......i am learning c now..... which i have to learn first c++ or dsa after completing C????
@shaikeliyasbasha28223 жыл бұрын
@@vaibhavbatra701 uu should have to learn first 'c' later it is advanced uu can learn c+++
@vaibhavbatra7013 жыл бұрын
Thank you shaik
@rittikkumardas97553 жыл бұрын
@23.59 you did a mistake. You were not updating I but you said pf Jenny will be executed 5 times only .I believe it will be infinite loop . 😶
@farzanaashraf81362 жыл бұрын
MashaAllah
@pritampandit62972 жыл бұрын
Feeling good to have a teacher like you mam...thank you for hard work for us.... After having your lecture performed it myself... for(i=1,j=0;i
@vinaygupta85322 жыл бұрын
Bhai dusre Wale ka 103212 hoga
@coding_with_bf Жыл бұрын
I don't understand that how it returns 321. I think it will be return 212 becoz k>1 but after running it ,it returns 321 plz tell me
@sarathsarabrozz6593 Жыл бұрын
@@coding_with_bf bro loop will end at 321 so its printed (because of that termination ' ; ')
@vaibhavzine3888 Жыл бұрын
@@coding_with_bf i think u incremented k++ use there k- - because k>1
@ebube. Жыл бұрын
@@vinaygupta8532 you didn't put the ";" at the end of the "for" statement, so the loop ran normally and gave the result you had
@loveyourself....42002 жыл бұрын
u just cleared my doubts in only minutes...😁thank u for yourrr efforts
@kameshpatil42312 жыл бұрын
27:21 output= 1 7 28:28 output = 3 2 1
@Me_in_Canada2k24 Жыл бұрын
I = 1,2 ,j = 0,1 , k = 3,2
@ElectricalsSolutions Жыл бұрын
but in compiler it give 103
@pmdinnesh1283 Жыл бұрын
@@ElectricalsSolutions no
@shivanijha8063 Жыл бұрын
@@ElectricalsSolutionsbcz u don't give semicolon after for loop
@maryannemuthoni5388 Жыл бұрын
Thank you so much, i have understood for loops better thanks to you. I tried some of the things you told us to: For the first question in 6:55 int i will not be initialized so loop will not activate and there will be an error. For 9:38 it will give an error since i is not initialized. For 15:38, i==10 will give no output since condition is false from the beginning, it will go out of body of loop For 12:30 I tried the i
@harinidurairaj419511 ай бұрын
We are very lucky to learn from you mam❤. Thank you so much.
@sabyasputnik_2004 Жыл бұрын
In 23:44 there is a mistake as we intialize the counter(i) with value 1 and in the place of condition put i
@jagadeeshkumar5629 Жыл бұрын
right bro
@anneshadas973 Жыл бұрын
exactly
@VRoshiniEvanjelen Жыл бұрын
Yes bro. As condition update is not provided tht will print JENNY for infinite tyms
@subhasisbiswal487411 ай бұрын
Ri8
@brihaspatibhattarai57563 жыл бұрын
First time I'm commenting something.. You saved me, thank you maam
@Shivgourav22 күн бұрын
@22:05 Mam I think that Jenny would print infinite times because there is nothing in update expression.
@18fatima159 ай бұрын
4:55 ma'am said that if we don't initialize anywhere, we'll get no o/p. But I got an o/p when I ran the program. #include #include int main() { int i; for(;i
@ShubhamKumar-tf7qi6 ай бұрын
yeah! same doubt in first one 4:55 did you get the reason by now
@zomatofather50265 ай бұрын
@@ShubhamKumar-tf7qi you got output because you added inc dec and variable default value is 0 then 0+1=1 1+1=2 thats why you got output 01234 my english is not much better
@cortexop73475 ай бұрын
same int main() { int i,j; for(i=1,j=0;i==10;i++,j++) printf("%d %d ",i,j); return 0; getch(); } output (blank screen, nothing is printed) // I didn't understand the logic here mere hisaab se output hona chayie the : 10 21 32 43 54 65 76 87 98 109
@monsmo94355 ай бұрын
@@cortexop7347 starting se hi condition true nahi hogi to loop execute hi nhi hoga
@jaijaijaijai1234 ай бұрын
@@ShubhamKumar-tf7qi @18fatima15 @4:55 while running the program your compiler is initializing value of uninitialized variable as 0. That is why it runs. But in my case there is garbage value and hence it does not run. So, initializing becomes important
@eduamar92342 жыл бұрын
output for 28:28 will be 321 because k>1 will be the termination expression and accordingly loop will be executed ..value used initially for i,j,k would (1,0,3) hence k condition will be executed nd i , j value would be incremeneted up to k>1 so the the finalise value for tht would be i =3, j =2, k =1
@sukanyamandal2828 Жыл бұрын
But here k>1 not k>=1 so it will consider upto the value k=2 So the ans is 2 1 2. Can you tell me , Please?
@pmdinnesh1283 Жыл бұрын
@@sukanyamandal2828 1 is not greater than 1 right that's why 3 2 1 would be printed
@bharathgoudandhyala7429 Жыл бұрын
103 212
@rsugil84592 жыл бұрын
Tomorrow is my presentation on loop. Thanks a lot mam ✨.
@simbarasheblessed38722 жыл бұрын
your lectures are well put together, keep up the good work
@sulurulokesh78778 ай бұрын
#include int main() { int i,j; for(i=1;i
@Mindmentorrr Жыл бұрын
28:20 the out put is 103 an 212 then it terminate because terminate condition is k>1
@rushipatil24062 жыл бұрын
Mam u great my all concept of loops easy to solve this vedio....👍🤞
@Madmaxkkb2 жыл бұрын
Thank you ma'am all doubts cleared ❤️
@ipadeolabamidele Жыл бұрын
God bless you beyond measures ma, I'm just seeing this and I appreciate that I saw it here first
@rohithboppana24142 жыл бұрын
I love your teaching, i was understanding well👌👍👏👏
@ashwaniverma55124 жыл бұрын
Your voice and content is very good 👍❤️❤️
@Binsxn7 ай бұрын
22:02 is a mistake i
@jayarogan7100 Жыл бұрын
Mam you are teaching very easy to understand to me thank you mam
@uppeyvaishnavi91573 жыл бұрын
At 23:53 a small correction for loop will run infinite
@bhagyeshwadhale81013 жыл бұрын
Thank you so much mam... Your video is very useful for me... 🙏🙏🔥✨❤
@BeautyofLanguage3 жыл бұрын
15:47 The output will be the same, that is 1 0, 2 1, 3 2. because the second condition will be considered by the control, which will be terminated as soon as it will reach till the second value 2.
@adityaram74082 жыл бұрын
for me loop is not executing (i==10)
@bharatb.s2 жыл бұрын
i have done really well with the help of u !! thank you maam
@sankalpphadke49383 жыл бұрын
28:20 int i, j, k; for(i=1, j=0, k=3;i1 becomes false, so loop ends. i=3 j=2 k=1
@mechile_pakki2 жыл бұрын
Brother ther is semi colon
@zenxdraken2418 Жыл бұрын
Thanks man
@veerabhadrarao2582 жыл бұрын
Tq very much all the possible varieties i have seen in this video. 🙏
@emiliarose19805 ай бұрын
Big thanks to you maam for all the amazing lectures and the hardworking that you're putting in your videos 1🫡🫡🫡
@chigsthanky Жыл бұрын
Thank you so much mam for these videos. It really clears our concepts and fundamentals. No one teaches like you with this much depth.
@ShahidAnsari-bf7qt3 жыл бұрын
Even at 23:50 jenny will be printed in finitely times because here we are not incremented or given any third expression so 1will always be less then 5
@irjbobby2 жыл бұрын
wow, never thought there could be so many variations for writing for loop.
@tapaswineebehera50613 жыл бұрын
Output of last question will be: 103 212 Bcoz K>1 is the termination condition
@kanurihashreta86483 жыл бұрын
how ones can u tell clearly how do u get 212
@abhisheklg14653 жыл бұрын
@@kanurihashreta8648 Answer is 321
@sanketdisale72652 жыл бұрын
@@abhisheklg1465 Why?
@shashankpatel9872 жыл бұрын
@@sanketdisale7265 answer will be 321 because she used semicolon ; in that program
@sandeepjalla20652 жыл бұрын
I is 1 2 3 j is 0 1 2 k is 3 2 1
@udaysinghrana57252 жыл бұрын
23:55 - Mam, in the given below program. you are saying that program will run only 4 times but there is no increment value which will result in infinite loop. For confirmation, i ran the program. #include int main() { printf("Hello World"); int i=1; for(;i
@bhushansopal53363 жыл бұрын
9:40 output 00 10 20 30 40 50
@mayurjogalpure28682 жыл бұрын
06:25 ---It will give the following output rather than no output. /*WAP to print numbers by allotting a maximum number using for loop*/ #include #include void main() { int i; for( ;i
@googleagent2 жыл бұрын
have you actually wrote these syntax and run it properly ? in my case its not giving any out put
@mayurjogalpure28682 жыл бұрын
@@googleagent Absolutely yes! I have written and run the program and this is what I got the output. Can you please run it once and get back to me?
@googleagent2 жыл бұрын
@@mayurjogalpure2868 yeah I did actually and my output differ from you , I am getting no output , output is blank and I wrote the exact syntax as mentioned .
@mayurjogalpure28682 жыл бұрын
@@googleagent This is strange! I am getting an output. Can't comment now.
@tunahankarali6917 Жыл бұрын
I'm taking output like you. ı don't know how to solve this problem
@ourculture70792 жыл бұрын
int i; for( ;i
@susmitasaha67595 ай бұрын
You have to initialise i with some value first..
@himanshu-x8s6b2 ай бұрын
thanks mam for your so hard work for free content
@ABHISHEK____70-c1b2 жыл бұрын
15:25 🐕🐶 aaaaaaaòoooooo this so funny voice during lecture 🤣🤣🤣🤣🤣🤣🤣
@karthikraj49533 жыл бұрын
for 6:59 , if we don't assign value for i, it will assign 0 automatically, so the output starts with 0.
@ayushjain77643 жыл бұрын
How you can say that i =0 ,because in i its garbage value not 0 which would assigned because for auto staorgae class deafault value is garbage value not 0.
@anubhav10203 жыл бұрын
@@ayushjain7764 Its particularly for a 'for loop' if variable not initialised then it is considered by default zero by compiler. And in rest of cases if u print 'i' any garbage value would be printed
@karthikeya.inumula8649 Жыл бұрын
Yeah , if we dont installize 'i' it takes " i=0 " , and if we dont installise both " i, j " it takes "i =0, j=1 " and after 3 variables it takes garbage value
@satyajeetjadhav49323 жыл бұрын
if we dont initialize i in for loop as well as in the declaration section we get the output but it starts from 0
@codeforces87293 жыл бұрын
If we don't initialize at for loop it will not give no output,it will give 0 to 5 when (;i
@hombdr.pathakkshetri88933 жыл бұрын
yes initialization started automatically from 0
@kunalboxer44322 жыл бұрын
No it will initiate with garbage value but still code will run
@abhishekrajput83922 жыл бұрын
Yes it will give 0 to 5
@asimbagwan98962 жыл бұрын
Thanks .your syntax work in turbo c++ .
@Cubeone11 Жыл бұрын
@@asimbagwan9896 turboc++ is shit, don't use it. instead you can use online compilers like programiz
@ShivPoojan.2 жыл бұрын
mam at 23:58 jenny will printed infinite times becoz there is no increment/decrement condition
@VectorClasses013 жыл бұрын
Dear mam, So thankful for your efforts for us, Mam actually @14:16when I am executing the code then the output is 4,3 But according to the given condition the answer must be different, Can you please clarify it..
@tathagatshirsale2920 Жыл бұрын
u took semicolon after for loop i think
@ummesalma6669 Жыл бұрын
23:35 Mam it prints jenny for infinte times since there is no updation of value
@aryanraj14163 жыл бұрын
23:54 output infinite loop but you told print four times?
@rushiiii49342 жыл бұрын
27:17 it's output is 1,7
@vinaysharma18583 жыл бұрын
6:59 I think it’s a mistake from your side. But we indeed get an output. 0,1,2,3,4,5
@margin100px3 жыл бұрын
Yeah because control automatically cosnsider 0 as a initial value as integer
@jahnavimaredla38933 жыл бұрын
No there was no output for me
@ShyamSundar-xd4lb2 жыл бұрын
@@jahnavimaredla3893 may be u did mistake somewhere. Output should be 012345
@srikanth-ki5ln Жыл бұрын
28:26 Output = 1 0 3 2 1 2
@sourabhkale5211 Жыл бұрын
9:35 Question= include int main() { int i,j=0; for(;i
@abdulrahimjalloh363 Жыл бұрын
Question 2 answer #include void main(){ int i,j; for(i=1,j=0;i==10; i++,j++) { printf("%d %d ",i,j); } getch(); } There will be no output, because i is not equal 10. i != 10
@meharartstudio73622 жыл бұрын
Input program( for loop):- #include #include void main() { int i, j=0 ; for( i
@DineshKumar-fb2iz2 жыл бұрын
😂 wrong bro
@VenugopalaB-kj5ly8 ай бұрын
Nice teacher❤❤
@reusgemi2972 жыл бұрын
27:38 the value of i is 1 and j is 7
@dhananjaysinghrathore33252 жыл бұрын
It will print 1 7, but the value of i will be 2 now, after the increment post the print statement.
@elavarasan_r1543 жыл бұрын
28:26 The output is 321
@salonimaniyar39433 жыл бұрын
best lacture!!! thank you ma'am!!🙂
@rukayatmuhammed3670 Жыл бұрын
God bless the day I found your KZbin channel
@abdulrahimjalloh363 Жыл бұрын
Question 1 answer #include void main(){ int i, j=0; for( ; i
@ashishkhati50903 жыл бұрын
23:43 Ma'am I think jenny would not be print 4 times bcuz value of i is not incrementing. 😅😅 And thanku ma'am for all things that u are doing for us.🙏🙏🙏 Lots of love and respect for u, and ur parents also who gave us such a hard working and dedicated teacher.❤️❤️❤️
@prasannasahoo08063 жыл бұрын
It will print infinite times
@aniketh46062 жыл бұрын
yes it is printing infinite times.
@mbawuikestanley69302 жыл бұрын
Very true, I wanted to say that
@kolasiddeganesh8512 жыл бұрын
Yeah 👍🏻
@shruthi8733 жыл бұрын
please reply for correct answers mam...it will be useful for others to check nah?😀
@prashantrathore21473 жыл бұрын
My all dought clear excellent work 👏
@isaac-victorshonowo1838 Жыл бұрын
@6:37 I got an output, even though according to you, I'm not supposed to get any output
@MehendiByPooja2 жыл бұрын
23:35 { Int i=1; for( ;i
@vrengineers24622 жыл бұрын
23:54 we didn't give any update value .so, it is an infinite loop.
@Thehimanshu001013 ай бұрын
You said wrong at 22:10 because Jenny would be printed infinfinite times according to that condition😊
@sudhirkundurthi51503 жыл бұрын
Output for the last question will be : 1 0 3 212
@ruthrakaran3 жыл бұрын
Use terminate symbol in for loop ;
@thilakparamasivan84092 жыл бұрын
@27:39 o/p is 17 And i becomes 2 after output
@BeautyofLanguage3 жыл бұрын
10:38 When no termination expression is given then the output goes till infinity.
@thekingpreetam6897 Жыл бұрын
23:48 it is going tilll infinity mam
@oisenidancan94472 жыл бұрын
you are such a blessing madam
@TheExpeditionMindset4 жыл бұрын
Hello ma'am !! Please come up with videos for competitive programming or just simple programming with focussing more on problem-solving rather than the language! :) Thanks in advance
@sulurulokesh78779 ай бұрын
In C, the behavior of uninitialized variables is undefined. That means the value of i in your code is indeterminate. It could contain any random value from whatever was stored in memory at that location before.
@aniketmore82163 жыл бұрын
at 23:46 this loop will execute till infinity bcoz we are not incrementing the value of i hence the conddition will always be true i.e 1
@shivalathanagula71533 жыл бұрын
Yeah...!!
@sulurulokesh78778 ай бұрын
#include int main() { int i=1,j; for(;i
@rajjaiswal4652 Жыл бұрын
On 23:58 jenny will printing infinite times
@sulurulokesh78778 ай бұрын
#include int main() { int i=1,j=0; for(;i
@akashpraveen98143 жыл бұрын
Extremely good..
@akshithaa.c2 жыл бұрын
Mam 28:00 ans is 1&2 after exicuting programme mam But condition >1 but 1 is equall ?
@raghubirprasadtharu12483 жыл бұрын
#include int main(){ int i; for( ; i
@aryanraj14163 жыл бұрын
7:05 if we don't assign any value for " i," compiler will assign 0 automatically, so the output starts with 0...
@aryanraj14163 жыл бұрын
15:47 nothing print
@koppulasupriya24803 жыл бұрын
It is compiler dependent sometimes it is assigned to 0 or with garbage value by default
@manpreetkaur-dk5mm3 жыл бұрын
Thank you so much mam for such beautiful lecture on for loop.
@sourabhpandey27063 жыл бұрын
Hii
@cybersecurity-jt5tl2 жыл бұрын
tell me your no😘😘😘😗🥰
@vrengineers24622 жыл бұрын
6:56 it prints out from 0 to 4
@neharao5233Ай бұрын
14:05 output : 10 21 32
@Ashwini_8132..2 ай бұрын
5:20 Mam It is giving the output 👉 i=6
@rohitbohra39064 жыл бұрын
Hello mam Ur video is very helpful thank you so much