C_35 Properties of For loop in C | C Programming Tutorials

Поделиться
HTML-код
  • Опубликовано: 2 окт 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

Комментарии • 661

  • @18fatima15
    @18fatima15 6 месяцев назад +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

  • @Maha_s1999
    @Maha_s1999 2 года назад +32

    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 Год назад +3

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

    • @shrinivassonune1465
      @shrinivassonune1465 Год назад +3

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

  • @ruthtef4227
    @ruthtef4227 3 года назад +45

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

  • @gamingislove8120
    @gamingislove8120 3 года назад +29

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

  • @18fatima15
    @18fatima15 6 месяцев назад +9

    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 3 месяца назад

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

    • @zomatofather5026
      @zomatofather5026 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 Месяц назад +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 Месяц назад

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

    • @jaijaijaijai123
      @jaijaijaijai123 Месяц назад

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

  • @Binsxn
    @Binsxn 4 месяца назад +2

    22:02 is a mistake i

  • @ourculture7079
    @ourculture7079 Год назад +13

    int i;
    for( ;i

    • @susmitasaha6759
      @susmitasaha6759 2 месяца назад +2

      You have to initialise i with some value first..

  • @sabyasputnik_2004
    @sabyasputnik_2004 Год назад +23

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

  • @aryanraj1416
    @aryanraj1416 3 года назад +11

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

  • @SN-edits4u
    @SN-edits4u Год назад +25

    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.

  • @thahir1341
    @thahir1341 Месяц назад +1

    22:20 how it'll print 4 times , because there is no updation, kindly please clarify my doubt......

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

  • @redrose5950
    @redrose5950 3 года назад +29

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

  • @shruthi873
    @shruthi873 3 года назад +8

    please reply for correct answers mam...it will be useful for others to check nah?😀

  • @subhadeepbosexi-a-0750
    @subhadeepbosexi-a-0750 6 месяцев назад +2

    I'm still confused why we are using console input output. Means when we need to use the console input output statement.

    • @gorlashirisha6590
      @gorlashirisha6590 5 месяцев назад

      When we use the getch () and clrscr () functions we need to use the console input output

  • @kameshpatil4231
    @kameshpatil4231 Год назад +18

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

  • @tapaswineebehera5061
    @tapaswineebehera5061 3 года назад +24

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

  • @eduamar9234
    @eduamar9234 Год назад +7

    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 Год назад +3

      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 11 месяцев назад +1

      103
      212

  • @simbarasheblessed3872
    @simbarasheblessed3872 2 года назад +24

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

  • @isaac-victorshonowo1838
    @isaac-victorshonowo1838 11 месяцев назад +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 ❤

  • @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!!❤️

  • @pritampandit6297
    @pritampandit6297 Год назад +30

    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 Год назад +5

      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

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

  • @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 2 года назад +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 Год назад +1

      Yes it will give 0 to 5

    • @asimbagwan9896
      @asimbagwan9896 Год назад +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

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

  • @Anonymous_EngineerX
    @Anonymous_EngineerX Год назад +6

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

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

  • @EhabSmH0
    @EhabSmH0 Год назад +2

    7:10 when setting i with no value and loop starts till 5 it acts as i value is 0
    int i;
    for( ; i

  • @JESUS_FOR_EVERYTHING
    @JESUS_FOR_EVERYTHING Год назад +1

    150 videos chesaru mam but how to c instal in laptop lo chepaledhu

  • @uppeyvaishnavi9157
    @uppeyvaishnavi9157 2 года назад +6

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

  • @pavankalyandandavathkar9568
    @pavankalyandandavathkar9568 3 года назад +11

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

  • @kameshpatil4231
    @kameshpatil4231 Год назад +14

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

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

  • @world.of.october
    @world.of.october 3 года назад +11

    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

  • @hustlewithnik
    @hustlewithnik 3 года назад +3

    At 9.40, it will not give any value coz we are not initializing "i".

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

  • @Thehimanshu00101
    @Thehimanshu00101 14 дней назад

    You said wrong at 22:10 because Jenny would be printed infinfinite times according to that condition😊

  • @crickyfire5621
    @crickyfire5621 3 года назад +3

    For Last question output is
    103
    212

  • @anjalimalviya800
    @anjalimalviya800 Год назад +1

    C language ko Hindi me samjhana he

  • @fatimaahmad5734
    @fatimaahmad5734 2 года назад +6

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

  • @devika__gorgeous
    @devika__gorgeous 3 года назад +1

    for(i=1,j=0;i

  • @sohanpalsanjay5873
    @sohanpalsanjay5873 8 месяцев назад +1

    Mam ess loop me hum i or j ke value print krane ke liye seprated loop le sakte hai kya??

  • @Hibro580
    @Hibro580 Год назад +2

    for(i=1,j=0;i==10;i++,j++) it won't print any output

  • @food8814
    @food8814 3 года назад +3

    23:50 but mam there is no increment then how i value is incremented

  • @angelmeee6696
    @angelmeee6696 3 года назад +4

    Mam, please tell me when you put semicolon at the end of for loop, in the example you have mentioned, how it comes to be till 8 & 7 . Please try to explain this
    Love from kashmir ❤

    • @LaFreMD
      @LaFreMD 3 года назад +1

      When you put a semicolon at the end of a loop then the statements following the loop are not considered to be inside the loop they are treated as any other statement in the program like input or output statement.
      When we have to include some statements inside the loop for executing multiple times we use braces '{}' but if we use a semicolon at end of the loop the statement we write in the braces after the loop are not considered to be a part of a loop but yet they will be executed (only once).

  • @vivekreddy111
    @vivekreddy111 Год назад +1

    if i not initialized it will give output maam it will take default value as 0

    • @isaac-victorshonowo1838
      @isaac-victorshonowo1838 11 месяцев назад

      I just noticed that too... It initializes it as 0 and runs it from there.

    • @unknown-kx6he
      @unknown-kx6he 10 месяцев назад

      Oh ok thanks for sharing

  • @Tirupathitirumala18
    @Tirupathitirumala18 20 часов назад

    Please mam upload java course like this 😢

  • @lucy2003-d8p
    @lucy2003-d8p 2 года назад +1

    23:50 u didn't give any update
    Then how it will be print for 4 times
    I think it will be printed for infinite times

  • @alarezomoosamuyi8526
    @alarezomoosamuyi8526 10 месяцев назад +2

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

    • @howler-zu8xr
      @howler-zu8xr 10 месяцев назад

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

    • @alarezomoosamuyi8526
      @alarezomoosamuyi8526 10 месяцев назад

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

    • @itx_que3nie38
      @itx_que3nie38 24 дня назад

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

  • @parthshroff7357
    @parthshroff7357 Год назад +1

    9:35 mam no output will be displayed

  • @jayarogan7100
    @jayarogan7100 Год назад +2

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

  • @sudhirkundurthi5150
    @sudhirkundurthi5150 3 года назад +4

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

    • @ruthrakaran
      @ruthrakaran 3 года назад

      Use terminate symbol in for loop ;

  • @manvendra91102
    @manvendra91102 3 года назад +3

    Mam please make video in detail .And mam please provide notes of c language.

  • @KrishnaGupta-yc3jd
    @KrishnaGupta-yc3jd 7 месяцев назад

    sorry mam,In TimeStamp 5:27, I found you wrong as it initialize i with a default value 0...
    And the output came as:
    0
    1
    2
    3
    4
    5

  • @rajeshazmeera8118
    @rajeshazmeera8118 Год назад +1

    It will go out of the loop when it is... i==10

    • @janasena_the_rise2
      @janasena_the_rise2 Год назад

      The answer will be 1 0, because we want to write first initialisation

  • @lucy2003-d8p
    @lucy2003-d8p 2 года назад +1

    I think
    We will get a infinite loop
    I will starts from a garbage value

  • @vinaysharma1858
    @vinaysharma1858 2 года назад +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

  • @the-richies2103
    @the-richies2103 2 года назад +1

    Mam,my code is not running for 27:56 that you have given...please solve my doubt

  • @harisarain5568
    @harisarain5568 11 месяцев назад +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

  • @BeautyofLanguage
    @BeautyofLanguage 2 года назад +7

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

  • @KISHOREKUMARR-ry5td
    @KISHOREKUMARR-ry5td Месяц назад +1

    13:44 dog is barking

  • @shivalathanagula7153
    @shivalathanagula7153 2 года назад +1

    26:38,there is no output for i,j??
    Any one get the output??for this....

  • @tejeswar5925
    @tejeswar5925 2 года назад +1

    Mam even if we don't initialize i at any part of the program, its default value is going to be 0.
    But u told it won't run the program. But its giving the output as 0 1 2 3 4 5 .
    Please verify and justify the correct answer mam.

    • @rushiiii4934
      @rushiiii4934 2 года назад

      Yesss brroooo ur right samee problem mam please explain what is the correct answer 🙄

    • @rushiiii4934
      @rushiiii4934 2 года назад

      Because here we use i think increment operator so i value automatically increament at end of 5

  • @MASTER-vm4bd
    @MASTER-vm4bd 7 месяцев назад

    Mam check properly whether you are giving semi-colon Or comma
    Your semi-colon is looking like comma

  • @ItsMe-rf7mo
    @ItsMe-rf7mo 3 года назад +2

    While using i==10 it doesn't print anything mam

  • @brihaspatibhattarai5756
    @brihaspatibhattarai5756 3 года назад +6

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

  • @shebilmuhammed
    @shebilmuhammed Год назад

    int main()
    {
    int i,j=0;
    For(;i

  • @ronycb7168
    @ronycb7168 6 месяцев назад

    If only terminal condition is loop termination condition what is the use of putting additional conditions???

  • @ABHISHEK____70-c1b
    @ABHISHEK____70-c1b 2 года назад

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

  • @MAHESHKUMAR-ew6qj
    @MAHESHKUMAR-ew6qj 2 года назад

    i cant concentrate with ur beautiful face...please put mask and teach....try to understand..

  • @ashisharyan9150
    @ashisharyan9150 2 года назад +1

    Respected mam it will give output with i=o

  • @Mindmentorrr
    @Mindmentorrr Год назад +1

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

  • @priyadharshinim5092
    @priyadharshinim5092 2 года назад +1

    28:19 Is the answer 103 and 212 , mam?

  • @venkannababuchakiri6230
    @venkannababuchakiri6230 7 месяцев назад +1

    mam i got 17127 output please tell me how

  • @gopalyadav6578
    @gopalyadav6578 11 месяцев назад +5

    According to me Ans will be i= 1,2,3,4,5 and j=0,1,2,3,4,5 and k= 3,2,1....but in my mobile code run and ans will bhi only 321

    • @RamyaSreevarshini
      @RamyaSreevarshini 10 месяцев назад +1

      Same

    • @howler-zu8xr
      @howler-zu8xr 10 месяцев назад +1

      That's correct output

    • @howler-zu8xr
      @howler-zu8xr 10 месяцев назад +1

      See carefully loop is terminated before using the print function

    • @bhushankotabagi7185
      @bhushankotabagi7185 10 месяцев назад

      @@howler-zu8xr then it will throw error I think

    • @howler-zu8xr
      @howler-zu8xr 10 месяцев назад

      @@bhushankotabagi7185 no ,no error will be there

  • @aumprakashdas7223
    @aumprakashdas7223 3 года назад +2

    Nothing out put in 1st q.

  • @Gamio-go2bp
    @Gamio-go2bp 2 года назад

    6:56 mam here ur wrong mam In this program we use increment operator (i++) so i value automatically increament
    Ex i ;
    i ++;
    i=0; so mam u have wrong please check to this program computer so output is 012345

    • @Gamio-go2bp
      @Gamio-go2bp 2 года назад

      Here what is working of (++) operator addition of 1 .

  • @MartinChauke-ns8bg
    @MartinChauke-ns8bg Месяц назад

    Hello Jenny
    Will you please explain the for loop for printing the following pattern of letters:
    ABCDEFGFEDCBA
    ABCDEF FEDCDBA
    ABCDE. EDCBA
    ABCD. DCBA
    ABC. CBA
    AB. BA
    A. A
    OR anyone to help😢

    • @Adi-cu1ew
      @Adi-cu1ew Месяц назад

      She has a playlist of pattern printing in C. Check it out.

  • @Madmaxkkb
    @Madmaxkkb 2 года назад +6

    Thank you ma'am all doubts cleared ❤️

  • @loveyourself....4200
    @loveyourself....4200 2 года назад +4

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

  • @venup5381
    @venup5381 3 года назад +1

    if we noit declare i either in local declaration or in for loop,
    then it is automatically taking i as 0.
    but it is not giving output as no output or something else
    as you told 6:36

  • @ElectricalsSolutions
    @ElectricalsSolutions Год назад

    if we are not initialized the value of i then also we get output , we get output from 0 to whenever conditon is true , but you said we get error its incorrect mam

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

  • @sangeetindia1654
    @sangeetindia1654 13 дней назад

    J++ outside lagane kiye lia infinite but i++ normal value

  • @ranga187fromhardhikpandyafan
    @ranga187fromhardhikpandyafan 9 месяцев назад

    Hii mamm this hemanth your are telling so good madam
    Love you madam❤❤❤

  • @Bharath4417
    @Bharath4417 Год назад +1

    If we didn't intialize started from 0 t05

  • @emiliarose1980
    @emiliarose1980 2 месяца назад +1

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

  • @sksahungpindia
    @sksahungpindia 3 года назад +1

    What will be output of...
    for(i=10; ;i--)
    printf("%d", i);

  • @vrengineers2462
    @vrengineers2462 Год назад +1

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

  • @dominomaster799
    @dominomaster799 Год назад

    if I get full
    printf as much money as u want
    else
    printf nothing

  • @karthikyadav8584
    @karthikyadav8584 2 месяца назад +2

    i=1 j=0,1,2,3,4,5,6,7

  • @devikasingh8809
    @devikasingh8809 3 месяца назад +1

    Q1 WILL GIVE AN ERROR

  • @ChukwunonsoMichael-i6d
    @ChukwunonsoMichael-i6d Год назад

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

  • @rohitthapliyal6664
    @rohitthapliyal6664 2 года назад +1

    Mam, i have a doubt, when you used 2 variable for initiazing program. You were not declare 'j' variable. Please solve my problem because I am confused. And it happened at 8:51 minute in this video 👆

  • @ruthrakaran
    @ruthrakaran 3 года назад +4

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

  • @Logan-ig7sm
    @Logan-ig7sm Год назад +1

    27:20 I think I=1 and j=7 will be printed

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

  • @isaacl.quelemine8775
    @isaacl.quelemine8775 Год назад +1

    In the 2nd assignment you did't declear i,j and k so we have syntax error but if we declear it our output will be: i = 3, j = 2, k = 1

  • @elavarasan_r154
    @elavarasan_r154 3 года назад +9

    28:26
    The output is
    321

  • @sulurulokesh7877
    @sulurulokesh7877 5 месяцев назад

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