C_35 Properties of For loop in C | C Programming Tutorials

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024
  • In this lecture we will discuss some properties of for loop in C.
    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

ความคิดเห็น • 679

  • @Maha_s1999
    @Maha_s1999 2 ปีที่แล้ว +41

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

    • @shrinivassonune1465
      @shrinivassonune1465 2 ปีที่แล้ว +3

      #include
      #include
      void main()
      {
      int i,j;
      clrscr();
      for(i=1,j=0 ; i

    • @shrinivassonune1465
      @shrinivassonune1465 2 ปีที่แล้ว +3

      #include
      #include
      void main()
      {
      int i,j;
      clrscr();
      for(i=1,j=0 ; i

  • @kameshpatil4231
    @kameshpatil4231 2 ปีที่แล้ว +27

    23:35
    it will print jenny for infinite times not only for 4 times since no modification is made through expression 3

  • @SN-edits4u
    @SN-edits4u ปีที่แล้ว +28

    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
      @vandanakedari3196 ปีที่แล้ว +1

      it may be infinte loop

    • @Chigo-nr8jg
      @Chigo-nr8jg ปีที่แล้ว

      there will be output as == is a relational perator. it will work fine.

    • @yuvrajprajapati6549
      @yuvrajprajapati6549 ปีที่แล้ว

      bro can you help me because i think that as i==10 and there is a condition which says i

    • @nakkatejanagasri7945
      @nakkatejanagasri7945 ปีที่แล้ว +2

      ​@@yuvrajprajapati6549what is the value of j

    • @sangharshtakale2824
      @sangharshtakale2824 6 หลายเดือนก่อน

      @@nakkatejanagasri7945 0

  • @ruthtef4227
    @ruthtef4227 3 ปีที่แล้ว +47

    I am so happy to come across your TH-cam 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.

  • @kameshpatil4231
    @kameshpatil4231 2 ปีที่แล้ว +15

    27:21
    output= 1 7
    28:28
    output = 3 2 1

  • @18fatima15
    @18fatima15 9 หลายเดือนก่อน +18

    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-tf7qi
      @ShubhamKumar-tf7qi 5 หลายเดือนก่อน +1

      yeah! same doubt in first one 4:55
      did you get the reason by now

    • @zomatofather5026
      @zomatofather5026 4 หลายเดือนก่อน +2

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

    • @cortexop7347
      @cortexop7347 4 หลายเดือนก่อน +2

      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

    • @monsmo9435
      @monsmo9435 4 หลายเดือนก่อน

      @@cortexop7347 starting se hi condition true nahi hogi to loop execute hi nhi hoga

    • @jaijaijaijai123
      @jaijaijaijai123 3 หลายเดือนก่อน

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

  • @sabyasputnik_2004
    @sabyasputnik_2004 ปีที่แล้ว +25

    In 23:44 there is a mistake as we intialize the counter(i) with value 1 and in the place of condition put i

  • @redrose5950
    @redrose5950 3 ปีที่แล้ว +29

    Extremely significant lecture, thanks alot for your efforts. You are a wonderful teacher.

  • @eduamar9234
    @eduamar9234 2 ปีที่แล้ว +8

    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
      @sukanyamandal2828 ปีที่แล้ว +4

      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
      @pmdinnesh1283 ปีที่แล้ว +1

      @@sukanyamandal2828 1 is not greater than 1 right that's why 3 2 1 would be printed

    • @bharathgoudandhyala7429
      @bharathgoudandhyala7429 ปีที่แล้ว +1

      103
      212

  • @pritampandit6297
    @pritampandit6297 2 ปีที่แล้ว +31

    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

    • @vinaygupta8532
      @vinaygupta8532 ปีที่แล้ว +3

      Bhai dusre Wale ka 103212 hoga

    • @coding_with_bf
      @coding_with_bf ปีที่แล้ว +6

      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
      @sarathsarabrozz6593 ปีที่แล้ว +3

      @@coding_with_bf bro loop will end at 321 so its printed (because of that termination ' ; ')

    • @vaibhavzine3888
      @vaibhavzine3888 ปีที่แล้ว

      @@coding_with_bf i think u incremented k++ use there k- - because k>1

    • @ebube.
      @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

  • @harisarain5568
    @harisarain5568 ปีที่แล้ว +1

    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

  • @fatimaahmad5734
    @fatimaahmad5734 2 ปีที่แล้ว +6

    I am learning c++ but i always watch your videos. It helps me clear my concepts.

  • @mayurjogalpure2868
    @mayurjogalpure2868 2 ปีที่แล้ว +5

    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

    • @googleagent
      @googleagent 2 ปีที่แล้ว +1

      have you actually wrote these syntax and run it properly ? in my case its not giving any out put

    • @mayurjogalpure2868
      @mayurjogalpure2868 2 ปีที่แล้ว

      @@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?

    • @googleagent
      @googleagent 2 ปีที่แล้ว

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

    • @mayurjogalpure2868
      @mayurjogalpure2868 2 ปีที่แล้ว

      @@googleagent This is strange! I am getting an output. Can't comment now.

    • @tunahankarali6917
      @tunahankarali6917 ปีที่แล้ว

      I'm taking output like you. ı don't know how to solve this problem

  • @uppeyvaishnavi9157
    @uppeyvaishnavi9157 2 ปีที่แล้ว +6

    At 23:53 a small correction for loop will run infinite

  • @isaac-victorshonowo1838
    @isaac-victorshonowo1838 ปีที่แล้ว +3

    @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 ❤

  • @alarezomoosamuyi8526
    @alarezomoosamuyi8526 ปีที่แล้ว +2

    In 27:25, the forloop
    for (i = 1, j = 0; i < 5, j

    • @howler-zu8xr
      @howler-zu8xr ปีที่แล้ว

      I am also using gcc compiler but no error in my case..
      Output - i=1 j=7

    • @alarezomoosamuyi8526
      @alarezomoosamuyi8526 ปีที่แล้ว

      @@howler-zu8xr okay, I'll retry it..

    • @itx_que3nie38
      @itx_que3nie38 3 หลายเดือนก่อน

      @@alarezomoosamuyi8526 compiler gives you error because you use semicolon after for function .

    • @varunkushwaha-b1g
      @varunkushwaha-b1g 2 หลายเดือนก่อน

      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-cd1jf
    @ShubhamSingh-cd1jf 3 ปีที่แล้ว +10

    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 .

    • @vaibhavbatra701
      @vaibhavbatra701 3 ปีที่แล้ว

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

    • @shaikeliyasbasha2822
      @shaikeliyasbasha2822 3 ปีที่แล้ว +1

      @@vaibhavbatra701 uu should have to learn first 'c' later it is advanced uu can learn c+++

    • @vaibhavbatra701
      @vaibhavbatra701 3 ปีที่แล้ว

      Thank you shaik

    • @rittikkumardas9755
      @rittikkumardas9755 3 ปีที่แล้ว +2

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

    • @farzanaashraf8136
      @farzanaashraf8136 2 ปีที่แล้ว

      MashaAllah

  • @gamingislove8120
    @gamingislove8120 3 ปีที่แล้ว +33

    I have passed Data structure paper by just watching ur vedios thanks mam😎

  • @maryannemuthoni5388
    @maryannemuthoni5388 ปีที่แล้ว +3

    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

  • @ruthrakaran
    @ruthrakaran 3 ปีที่แล้ว +4

    9:31
    #include
    int main() {
    int i,j=0;
    for(;i

    • @rohithsai9046
      @rohithsai9046 3 ปีที่แล้ว

      please explain me at 15:33

  • @sankalpphadke4938
    @sankalpphadke4938 3 ปีที่แล้ว +16

    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

  • @Binsxn
    @Binsxn 6 หลายเดือนก่อน +2

    22:02 is a mistake i

  • @debadritadebnath3225
    @debadritadebnath3225 3 ปีที่แล้ว +15

    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.

  • @pavankalyandandavathkar9568
    @pavankalyandandavathkar9568 3 ปีที่แล้ว +11

    Thank you so much madam😊, you cleared all my doubts regarding to the for loop

  • @shahdarshil1227
    @shahdarshil1227 2 ปีที่แล้ว +8

    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_EngineerX
    @Anonymous_EngineerX 2 ปีที่แล้ว +6

    A very amazing season mam
    I search this topic on u tube but your video are awesome
    All concept clear thanks mam👍👍👍👍👍👍👍👍👍👍❤️❤️❤️❤️❤️❤️

  • @ShahidAnsari-bf7qt
    @ShahidAnsari-bf7qt 3 ปีที่แล้ว +5

    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

  • @loveyourself....4200
    @loveyourself....4200 2 ปีที่แล้ว +4

    u just cleared my doubts in only minutes...😁thank u for yourrr efforts

  • @BeautyofLanguage
    @BeautyofLanguage 3 ปีที่แล้ว +5

    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.

    • @adityaram7408
      @adityaram7408 2 ปีที่แล้ว +4

      for me loop is not executing (i==10)

  • @simbarasheblessed3872
    @simbarasheblessed3872 2 ปีที่แล้ว +24

    your lectures are well put together, keep up the good work

  • @harinidurairaj4195
    @harinidurairaj4195 11 หลายเดือนก่อน +1

    We are very lucky to learn from you mam❤. Thank you so much.

  • @brihaspatibhattarai5756
    @brihaspatibhattarai5756 3 ปีที่แล้ว +6

    First time I'm commenting something.. You saved me, thank you maam

  • @Mindmentorrr
    @Mindmentorrr ปีที่แล้ว +1

    28:20 the out put is 103 an 212 then it terminate because terminate condition is k>1

  • @karthikraj4953
    @karthikraj4953 3 ปีที่แล้ว +12

    for 6:59 , if we don't assign value for i, it will assign 0 automatically, so the output starts with 0.

    • @ayushjain7764
      @ayushjain7764 3 ปีที่แล้ว +8

      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.

    • @anubhav1020
      @anubhav1020 3 ปีที่แล้ว +16

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

  • @ourculture7079
    @ourculture7079 2 ปีที่แล้ว +14

    int i;
    for( ;i

    • @susmitasaha6759
      @susmitasaha6759 4 หลายเดือนก่อน +5

      You have to initialise i with some value first..

  • @jayarogan7100
    @jayarogan7100 ปีที่แล้ว +2

    Mam you are teaching very easy to understand to me thank you mam

  • @codeforces8729
    @codeforces8729 3 ปีที่แล้ว +55

    If we don't initialize at for loop it will not give no output,it will give 0 to 5 when (;i

    • @hombdr.pathakkshetri8893
      @hombdr.pathakkshetri8893 3 ปีที่แล้ว +4

      yes initialization started automatically from 0

    • @kunalboxer4432
      @kunalboxer4432 2 ปีที่แล้ว +4

      No it will initiate with garbage value but still code will run

    • @abhishekrajput8392
      @abhishekrajput8392 2 ปีที่แล้ว +1

      Yes it will give 0 to 5

    • @asimbagwan9896
      @asimbagwan9896 2 ปีที่แล้ว +1

      Thanks .your syntax work in turbo c++ .

    • @Cubeone11
      @Cubeone11 ปีที่แล้ว

      @@asimbagwan9896 turboc++ is shit, don't use it. instead you can use online compilers like programiz

  • @vinaysharma1858
    @vinaysharma1858 3 ปีที่แล้ว +7

    6:59 I think it’s a mistake from your side. But we indeed get an output. 0,1,2,3,4,5

    • @margin100px
      @margin100px 2 ปีที่แล้ว +3

      Yeah because control automatically cosnsider 0 as a initial value as integer

    • @jahnavimaredla3893
      @jahnavimaredla3893 2 ปีที่แล้ว +2

      No there was no output for me

    • @ShyamSundar-xd4lb
      @ShyamSundar-xd4lb 2 ปีที่แล้ว

      @@jahnavimaredla3893 may be u did mistake somewhere. Output should be 012345

  • @bhushansopal5336
    @bhushansopal5336 3 ปีที่แล้ว +5

    9:40
    output
    00
    10
    20
    30
    40
    50

  • @tapaswineebehera5061
    @tapaswineebehera5061 3 ปีที่แล้ว +24

    Output of last question will be:
    103
    212
    Bcoz K>1 is the termination condition

    • @kanurihashreta8648
      @kanurihashreta8648 3 ปีที่แล้ว +1

      how ones can u tell clearly how do u get 212

    • @abhisheklg1465
      @abhisheklg1465 3 ปีที่แล้ว +2

      @@kanurihashreta8648 Answer is 321

    • @sanketdisale7265
      @sanketdisale7265 2 ปีที่แล้ว

      @@abhisheklg1465 Why?

    • @shashankpatel987
      @shashankpatel987 2 ปีที่แล้ว +3

      @@sanketdisale7265 answer will be 321 because she used semicolon ; in that program

    • @sandeepjalla2065
      @sandeepjalla2065 2 ปีที่แล้ว

      I is 1 2 3 j is 0 1 2 k is 3 2 1

  • @Madmaxkkb
    @Madmaxkkb 2 ปีที่แล้ว +6

    Thank you ma'am all doubts cleared ❤️

  • @sourabhkale5211
    @sourabhkale5211 ปีที่แล้ว

    9:35
    Question=
    include
    int main() {
    int i,j=0;
    for(;i

  • @srikanth-ki5ln
    @srikanth-ki5ln ปีที่แล้ว +1

    28:26
    Output = 1 0 3
    2 1 2

  • @BeautyofLanguage
    @BeautyofLanguage 3 ปีที่แล้ว +7

    10:38 When no termination expression is given then the output goes till infinity.

  • @elavarasan_r154
    @elavarasan_r154 3 ปีที่แล้ว +9

    28:26
    The output is
    321

  • @rsugil8459
    @rsugil8459 2 ปีที่แล้ว +3

    Tomorrow is my presentation on loop.
    Thanks a lot mam ✨.

  • @vrengineers2462
    @vrengineers2462 2 ปีที่แล้ว +1

    23:54 we didn't give any update value .so, it is an infinite loop.

  • @reusgemi297
    @reusgemi297 2 ปีที่แล้ว +5

    27:38 the value of i is 1 and j is 7

    • @dhananjaysinghrathore3325
      @dhananjaysinghrathore3325 2 ปีที่แล้ว

      It will print 1 7, but the value of i will be 2 now, after the increment post the print statement.

  • @VectorClasses01
    @VectorClasses01 2 ปีที่แล้ว +7

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

  • @rushiiii4934
    @rushiiii4934 2 ปีที่แล้ว +1

    27:17 it's output is 1,7

  • @sulurulokesh7877
    @sulurulokesh7877 8 หลายเดือนก่อน

    #include
    int main()
    {
    int i,j;
    for(i=1;i

  • @ashwaniverma5512
    @ashwaniverma5512 3 ปีที่แล้ว +4

    Your voice and content is very good 👍❤️❤️

  • @bharatb.s
    @bharatb.s 2 ปีที่แล้ว +2

    i have done really well with the help of u !! thank you maam

  • @udaysinghrana5725
    @udaysinghrana5725 2 ปีที่แล้ว

    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

  • @rushipatil2406
    @rushipatil2406 2 ปีที่แล้ว +1

    Mam u great my all concept of loops easy to solve this vedio....👍🤞

  • @satyajeetjadhav4932
    @satyajeetjadhav4932 2 ปีที่แล้ว +10

    if we dont initialize i in for loop as well as in the declaration section we get the output but it starts from 0

  • @aniketmore8216
    @aniketmore8216 3 ปีที่แล้ว

    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

  • @18fatima15
    @18fatima15 9 หลายเดือนก่อน +6

    14:10 #include
    #include
    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

  • @irjbobby
    @irjbobby 2 ปีที่แล้ว +3

    wow, never thought there could be so many variations for writing for loop.

  • @rohithboppana2414
    @rohithboppana2414 2 ปีที่แล้ว +1

    I love your teaching, i was understanding well👌👍👏👏

  • @sulurulokesh7877
    @sulurulokesh7877 8 หลายเดือนก่อน

    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.

  • @neharao5233
    @neharao5233 หลายเดือนก่อน

    14:05
    output : 10
    21
    32

  • @funnygaming_1204
    @funnygaming_1204 16 วันที่ผ่านมา +1

    5:20 mam it is giving 0 to 5

  • @aryanraj1416
    @aryanraj1416 3 ปีที่แล้ว +11

    23:54 output infinite loop but you told print four times?

  • @chirag6216
    @chirag6216 2 ปีที่แล้ว +1

    27:50 Due to i++ being out from for loop, it would result in i value being 1 and less than 5 always which would then result in an infinite loop.

    • @sunnyreddy3215
      @sunnyreddy3215 2 ปีที่แล้ว +7

      You are wrong. Termination condition is on j, not on i. So when j value is 7 it will be terminated.so 17 will be printed

    • @Sriswaraksharam
      @Sriswaraksharam 2 ปีที่แล้ว +1

      @@sunnyreddy3215 ya but I think 17will not be printed becoz, only 6times will be printed as till j will be 6

    • @richards8160
      @richards8160 ปีที่แล้ว +1

      @@Sriswaraksharam no u are wrong if j=6 it checks condition i.e j

  • @emiliarose1980
    @emiliarose1980 5 หลายเดือนก่อน +1

    Big thanks to you maam for all the amazing lectures and the hardworking that you're putting in your videos 1🫡🫡🫡

  • @AnuSurya10
    @AnuSurya10 3 หลายเดือนก่อน +1

    25:38 Answer for the assignment:
    1 7
    Explanation: The loop runs till j becomes 7. It comes out of the loop. printf would print the values of i and j which are 1 and 7 and i becomes 2 at the end of the program.

  • @himanshu-x8s6b
    @himanshu-x8s6b หลายเดือนก่อน

    thanks mam for your so hard work for free content

  • @junnatulferdouseprome9180
    @junnatulferdouseprome9180 3 ปีที่แล้ว +3

    int i=1,j=0,k;

    for(i=1,j=0,k=3;i

  • @ipadeolabamidele
    @ipadeolabamidele ปีที่แล้ว

    God bless you beyond measures ma, I'm just seeing this and I appreciate that I saw it here first

  • @sudhirkundurthi5150
    @sudhirkundurthi5150 3 ปีที่แล้ว +4

    Output for the last question will be : 1 0 3
    212

    • @ruthrakaran
      @ruthrakaran 3 ปีที่แล้ว

      Use terminate symbol in for loop ;

  • @krupa1963
    @krupa1963 3 ปีที่แล้ว +17

    15:40
    For loop will terminate without printing anything since the condition (1==10) is False.
    27:32
    Output : 17
    28:15
    Output : 321

    • @anju7334
      @anju7334 3 ปีที่แล้ว

      please explain last two answers 🙏

    • @rs_fighter
      @rs_fighter 3 ปีที่แล้ว +3

      @@anju7334 sun bahan
      #include
      int main() {
      // Write C code here
      int i,j;
      for(i=1,j=0;i

    • @mechile_pakki
      @mechile_pakki 2 ปีที่แล้ว

      Same

    • @Pinksky17
      @Pinksky17 2 ปีที่แล้ว

      There is a semicolon too, which will loop a statement.*

  • @sulurulokesh7877
    @sulurulokesh7877 8 หลายเดือนก่อน

    #include
    int main()
    {
    int i=1,j;
    for(;i

  • @rajjaiswal4652
    @rajjaiswal4652 ปีที่แล้ว +1

    On 23:58 jenny will printing infinite times

  • @krupa1963
    @krupa1963 3 ปีที่แล้ว +4

    Once check this madam
    23:43
    Since there is no updation it will be an infinite loop
    6:34
    Getting 0 1 2 3 4 5 as output madam... By default i is getting initialized with 0 madam

  • @vrengineers2462
    @vrengineers2462 2 ปีที่แล้ว +1

    6:56 it prints out from 0 to 4

  • @vivekkomanapalli
    @vivekkomanapalli หลายเดือนก่อน +1

    1 ans: some time it gives garbage value and other time it gives blank

  • @thilakparamasivan8409
    @thilakparamasivan8409 ปีที่แล้ว

    @27:39 o/p is 17
    And i becomes 2 after output

  • @abdulrahimjalloh363
    @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

  • @sulurulokesh7877
    @sulurulokesh7877 8 หลายเดือนก่อน

    #include
    int main()
    {
    int i=1,j=0;
    for(;i

  • @ahadgaur4462
    @ahadgaur4462 2 ปีที่แล้ว

    At 28:17 it will give output 3 2 1

  • @ABHISHEK____70-c1b
    @ABHISHEK____70-c1b 2 ปีที่แล้ว

    15:25 🐕🐶 aaaaaaaòoooooo this so funny voice during lecture 🤣🤣🤣🤣🤣🤣🤣

  • @MehendiByPooja
    @MehendiByPooja ปีที่แล้ว

    23:35
    {
    Int i=1;
    for( ;i

  • @ashishkhati5090
    @ashishkhati5090 3 ปีที่แล้ว +24

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

  • @aryanraj1416
    @aryanraj1416 3 ปีที่แล้ว +2

    7:05 if we don't assign any value for " i," compiler will assign 0 automatically, so the output starts with 0...

    • @aryanraj1416
      @aryanraj1416 3 ปีที่แล้ว

      15:47 nothing print

    • @koppulasupriya2480
      @koppulasupriya2480 3 ปีที่แล้ว

      It is compiler dependent sometimes it is assigned to 0 or with garbage value by default

  • @rukayatmuhammed3670
    @rukayatmuhammed3670 ปีที่แล้ว

    God bless the day I found your TH-cam channel

  • @hariparuchuru3858
    @hariparuchuru3858 2 ปีที่แล้ว +4

    when we enter the condition as i == 10 then the compiler will not enter into loop and will reach the end of the program
    with out printing any value

    • @reusgemi297
      @reusgemi297 2 ปีที่แล้ว

      In fact == is a equal to relational operator and if any of the condition get failed it will simply terminate from the for loop

  • @meharartstudio7362
    @meharartstudio7362 2 ปีที่แล้ว

    Input program( for loop):-
    #include
    #include
    void main()
    {
    int i, j=0 ;
    for( i

  • @veerabhadrarao258
    @veerabhadrarao258 2 ปีที่แล้ว +1

    Tq very much all the possible varieties i have seen in this video. 🙏

  • @ShivPoojan.
    @ShivPoojan. 2 ปีที่แล้ว

    mam at 23:58 jenny will printed infinite times becoz there is no increment/decrement condition

  • @neharao5233
    @neharao5233 หลายเดือนก่อน

    26:04
    output: 17

  • @Brain_booster_007
    @Brain_booster_007 ปีที่แล้ว

    Time : 23:45 :- mam teach wrong ❌
    Jenny is not printed 5 time , because we are "not Increamenting" the i variable.. Hence infinite loop will printed... 🖋

    • @Brain_booster_007
      @Brain_booster_007 ปีที่แล้ว

      Whole lecture is very nice and i got all the concepts.. Thanks mam 💕

  • @abdulrahimjalloh363
    @abdulrahimjalloh363 ปีที่แล้ว

    Question 1 answer
    #include
    void main(){
    int i, j=0;
    for( ; i

  • @puneetnagar525
    @puneetnagar525 3 ปีที่แล้ว +2

    for 9:41
    it will be printed like
    00
    11
    22
    33
    44
    and so on

  • @HamsaVashini
    @HamsaVashini 2 ปีที่แล้ว +1

    212 is the answer for 28:22

  • @raghubirprasadtharu1248
    @raghubirprasadtharu1248 3 ปีที่แล้ว

    #include
    int main(){
    int i;
    for( ; i

  • @chigsthanky
    @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.

  • @Ashwini_8132..
    @Ashwini_8132.. หลายเดือนก่อน

    5:20 Mam It is giving the output 👉 i=6

  • @thekingpreetam6897
    @thekingpreetam6897 ปีที่แล้ว

    23:48 it is going tilll infinity mam

  • @LyricalCom-co9xj
    @LyricalCom-co9xj 3 ปีที่แล้ว +9

    How can one focus on study when such a beautiful teacher is teaching.

    • @bolobolobolobo
      @bolobolobolobo 3 ปีที่แล้ว +4

      abe padhai likhai karo ias yas bano
      tcher pe nahi gyaan pe dhyaan do