C_38 While Loop in C (part-2) | C Language Tutorials

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2025

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

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

    Hello teacher Jenny, I am your student from Kenya,you have made learning C programming language so interesting and understandable for me. Thank you so much for your unending efforts to freely make such educative videos. May your bucket of knowledge never lack.

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

    At 12:01,The while loop will print 0 to 10,Since we did not initialize the value of i, it takes i=0 and then the loop will get terminated then the "End of the program" will be printed.

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

      The output which u mentioned happens only for "for loop"..not for while

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

      @@supradeepthavuta1028 Try it on you computer and see for yourself. It works for both.

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

      the value of i depend on compiler,

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

      It's give same output but i don't understand how? Int datatype 0 is not the smallest int. What about -ve numbers?

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

    At 11:31 If didn't give i value it will going in infinite loop and printing interger range when ans is -1 that time loop break and coming outside the loop.

  • @waseemahmed8901
    @waseemahmed8901 4 ปีที่แล้ว +11

    Hi, my name is Wasim Ahmed and I am from Islamabad, Pakistan
    .
    Ma'am, you are really impressive. I see all your DSA lectures which are really helpful for me in exams. I wanna to thank you.

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

      Hello from India. 🎊

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

      @@AvishekPaulOnline Hello

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

      Hello from India

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

      I am from lahore ,Pakistan. Ma'am really teaches in a very simple and easy way.I have yet to get admission in university. So i am here to learn things in advance.

  • @vrmohan7709
    @vrmohan7709 4 ปีที่แล้ว +8

    Iam waiting exam on c this semester and you are my reference❤

  • @abdussalamashuaebi7185
    @abdussalamashuaebi7185 4 ปีที่แล้ว +14

    My teacher has global eyes. I am here from the Arab lands. Thank you so much.

  • @ashurox1129
    @ashurox1129 4 ปีที่แล้ว +21

    You are the best!!
    I am from IIT BHU but i never focussed on proffs while they were teaching. (you know it right).
    Now i got an intern in a reputed company and will get placed next year.
    Thank you for ur courses especially DSA.
    Love you and a gift i have in my mind and give you if i ever get a chance.
    Thanks again!! ♥

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

      Vro iit me teaching kaise hoti hai. Plzz reply yrr🥺

    • @SouravKumar-ms9ws
      @SouravKumar-ms9ws 3 ปีที่แล้ว

      @@RahulBisht_001 Kuch khas nahi baki college ki hi taraf bas prof slides reading marte ha🙃

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

      Bro are u on telegram if yes do tell me so that I can ask u my cs related query

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

    Mam you are all programs explain in a very very simple language
    Soo it is very simple to study for me.
    Thank you ...
    mam

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

    14:47 it will print 0 and then end of program

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

      I think it should print 1 and then end of program .... Because we are using pre increament

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

      Please explain why it will print 0

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

    Starts at 3:04

  • @dilshoddilmurodov-f9r
    @dilshoddilmurodov-f9r ปีที่แล้ว +1

    at 14:23, it is not gonna stop i checked it
    but anyway I understand this lesson deeply thank u)I

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

    11:48 No output
    Thanks a Lot Mam

  • @crazythinkers642
    @crazythinkers642 3 หลายเดือนก่อน +5

    At 13:13 Output will be nothing when we use semicolon after while

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

    At 14:49
    Output - 0
    End of program

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

      how do u get 0 and End of program, I am running it in code blocks but not getting any output?

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

    11:45 gives an error on IDE
    14:44 gives 0 and end
    16:55 when you use %c gives the characters

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

    14:47 it will print "end of program"

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

    at 14:47
    #include
    #include
    void main()
    {
    int i=0;
    while(++i);
    {
    printf("%d
    ",i);
    }
    printf("end of program");
    getch();
    }
    it gives
    0
    end of program

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

      It's wrong .
      Answer is 1

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

      @@elavarasan_r154 program run kar ke copy paste kiya hu bhai . Answer 0 aa raha hai

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

      i=1 bro because ++i
      So answer is 1 and end of the program

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

      See that logic bro

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

      If there is increment or decremnt will it be. A loop

  • @punithgowda6723
    @punithgowda6723 4 ปีที่แล้ว +8

    Thank you for data structures helped me alot. Keep rocking

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

    At 11:46 Ans is correct Loop didn't work control directly going out side the loop and printing outside the loop.

  • @asthaagarwal8554
    @asthaagarwal8554 4 ปีที่แล้ว +43

    Ma'am your data structures playlist helped me a lot... Now, I have planned to go further and learn DAA(design and analysis of algorithms). Please make a playlist on DAA. Your way of writing code and teaching it is so good. Literally, I have tried to learn DAA from other playlists which are available on TH-cam but it didn't help me that much. Please try to make videos on DAA. It will help me a lot🙏

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

      Buddy can u Plz help me in numerical related to c++ if u are done with it ?

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

    11:50 when i is not initialised and condition is given, and increment is there, then the output will be 0-10

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

    @11:53 it prints 0-10 and the end sentence

  • @sriwathsanagumalli473
    @sriwathsanagumalli473 4 ปีที่แล้ว +16

    Good evening mam,
    As u are explaining c, please explain java and other programming languages also, mam.
    Your explanation is awesome.

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

    Mam, when we didn't initialize any value to i, it'll take as default value 0.so it'll print from 0 till 10.

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

      And after printing 0-10 it will print "End of Program"

    • @De-CODE7
      @De-CODE7 2 ปีที่แล้ว +3

      but I am not getting this type of output bro, my o/p is only end of the program

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

      @@De-CODE7 how did you get that output bro,i have also getting the above o/p...
      If you get what mam says ,plz text it on comment box broo....

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

      Is it also machine dependent? To know that, plz say which IDE u r using

  • @nikita-zj4sf
    @nikita-zj4sf 3 ปีที่แล้ว +5

    When we don't initialise the variable..in for loop then at start of loop it is by default considered as zero in the sense it is by default initialised with zero when we don't initialise...

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

    I am a big fan of your explanation mam❤️❤️❤️

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

    Jenny really your way is shortcut easily understood, please share me Java playlist

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

    Mam I ❤️ your way of teaching please do playlist on machine learning & artificial intelligence mam please mam

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

    Mam you are great👻 thanks for making study easy for us

  • @Habib-ullahm
    @Habib-ullahm 2 ปีที่แล้ว +1

    the programm at 17:50 give infinite integer

  • @ranaawais9072
    @ranaawais9072 4 ปีที่แล้ว

    You'r too much hard worker. You work a lot for us

  • @vishalprasad9543
    @vishalprasad9543 4 ปีที่แล้ว +10

    Ma'am if possible please give the notes and questions related to our semester

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

    thank you so much mam for providing free c list this list is very helpful for me and as well all user who want to learn programmer i think that seeing your whole playlist of c i will make a good programmer
    thank you so much mam god bless you and complete your whole wishes

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

    Mam ye infinity compiler k range par depend karta he. The range you have written is not same for all of the compilers. For example the range of the code blocks's compiler is bigger than the range u have written.

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

    Once I saw u a year ago, through out past year u hv got a lots of change,
    especially ur pitch of voice..

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

    printf("%c",ch);
    This will print from a to z and all other characters

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

    now, tommorow's exam will suffer in my hands. thanks Jenny

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

    If you place a semi-colon on the while, it will only print the statements out of the loop

  • @VinodKumar-ob1eh
    @VinodKumar-ob1eh 3 ปีที่แล้ว +1

    14:49 ans is end of program

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

    17:00- output in symbols

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

    Thank you mama for the efforts you put in to make us understand 🥰

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

    First view🤩 I am soo lucky to watch ur videos mam

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

    Fabbbb you are a life Savior of students like mee

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

    Expecting a heart from u maam. ❤

  • @PriyankaSingh-zg2jh
    @PriyankaSingh-zg2jh 3 ปีที่แล้ว +1

    U,r too good I like u,r way of teaching...

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

    output of code when condition is i

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

    Hello ma'am , 11:08 you are saying about increment , but in while syntax no iteration
    I am just confused 😞😔

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

    thank you mam🌹🌹🌹🌹🌹🌹🌹🌹this is for your teaching

  • @francisa.k.mensahjr.7885
    @francisa.k.mensahjr.7885 ปีที่แล้ว

    #include
    int main() {
    int number, i, product;
    printf("Enter the number
    ");
    scanf("%d", &number);
    while(i

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

    Man aap bhaut accha padhti h bhaut hi badiya

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

    13:59
    Madam, I am getting an infinite loop!!🙄
    How is it possible?

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

    Intialising of i is written two times in the program i.e., int i = 1 and i = 1.
    It will throw an error.

  • @prakrutithakar1767
    @prakrutithakar1767 4 ปีที่แล้ว +13

    Mam plz start arrays !!!!!!my exam are coming soon 🥺🥺🥺

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

    Mam can you please make a separate video on finding the second largest element in an array

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

    i think you should mention short infront of int because short int is 16 bit and it matches with range that you told in the video

  • @AM-cz2rb
    @AM-cz2rb 3 ปีที่แล้ว +1

    Best explanation mam. you are great.

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

    ##3:04 save your time

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

    Best video
    #TechBlooded🔥

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

    Thank you mam...
    Can you make lecture series on JAVA language

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

    Mam you are intelligent mam

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

    mam, when we don't initialize then by default it takes i=0 and gives an output from 0-10.

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

    When the condition for the while loop is ( i

    • @MAHESH-rf2uy
      @MAHESH-rf2uy ปีที่แล้ว +1

      no bro the output is End of the program

    • @Prasanna-im1zy
      @Prasanna-im1zy ปีที่แล้ว

      ​@@MAHESH-rf2uyyes ofcourse

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

    Ma'am , in while loop when we do increament (pre or post ) it goes to infinite loop ! It doesn't print till 0 or -1 as you have told in the video.
    Why ?

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

    A fan from UK

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

    #include
    int main()
    {
    int i=1;
    while (i)
    {
    printf("%d
    ",i);
    ++i;
    }

    return 0;
    }
    maam apne video me bola tha k ye infinite loop nhi he aur ye -1 tk aake end ho jyga , lkin mere vs code me toh ye loop infinite tak chala; pls doubt clear kr dijiye maam
    and thank you maam for such videos

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

    mam, why am i getting an infinite value for this program ? 10:24

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

    And mam please do teach how to build logic in Loops (Patterns)

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

    Thank-you ma'am

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

      Hey how can I seen my query related to c progamming as mam doesn’t reply u can solve my numerical issue in c and c++?

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

    I am implementing all the knowledge from this video on c++ .is it right?

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 2 ปีที่แล้ว +1

    Thanks a lot mam 🔥🔥🔥

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

    14:40 mam the output will be 0

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

    10:08 nice mam

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

    At 11:57 it won't show any output bcoz it doesn't know from where to start ... I dried runned it and I also runned it in turbo c++

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

      yes u are right I had runned it in VS code

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

    Hello mam i think ... Int having between the range of -127to128

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

    Awesome voice my Dear c teacher

  • @SaweraSawera-990
    @SaweraSawera-990 7 หลายเดือนก่อน

    Thanks mam❤😊

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

    if i run the program given at timelapse 11:46 it gives
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    end of program

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

    11:45 output will be
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    end of program

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

    12:01 in my C program that I am using in mobile phone it take for garbage value as zero every time

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

    Thank you jayanti ma'am

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

    11:48 it prints 0 1 2 3 4 5 6 7 8 9 10 End of Program , mam

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

      No,it prints : End of program

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

    8:18 why zero is false

  • @World-of-programming.
    @World-of-programming. 3 หลายเดือนก่อน

    3:06 a semicolon must be placed to printf

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

    12:00 i guess it will print garbage value of i, it does in my compiler

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

    Your teching so good

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

    at 11:54 the output is
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    end of program

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

      no I had run the program , so output is : end of program

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

    thank you maam

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

    11:48
    #include
    int main() {
    int i;
    while(i

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

      At 11:48, u didn't increment the value of i......so,it will repeat the values for infinite times....

  • @MAHESH-rf2uy
    @MAHESH-rf2uy ปีที่แล้ว

    At 12:02 I got output "End of the program" but how??? what 'i' value becomes mam...is it skip the while loop?? please clarify me mam...🙄🙄

  • @AJAYKUMAR-ti2dl
    @AJAYKUMAR-ti2dl 4 ปีที่แล้ว +3

    Hello mam please make video in c++

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

    mam,please tell what happens when we put semi column after while loop ?

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

    16:52 mam the output will be abcdefghijklmnopqrstuvwxyz{|}~.... and so on till a finite limit ASCII code is reached

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

    You are the best mammm

  • @KrishnaKumar-b4m9p
    @KrishnaKumar-b4m9p 11 หลายเดือนก่อน

    6:42 when i run this program in output its printing 10 11 12 13 and its going till infinite..when it goes till 42000 my computer started heating and fan noise became loud so i immediately stopped the output screen... but mam u told that it will only print till 37000

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

      😱😱

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

    Nice teaching mam

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

    Adding this ; the output will give (End of program)

  • @rajveersinh
    @rajveersinh 4 ปีที่แล้ว

    Superb Video mem..Thank you

  • @nithish9782
    @nithish9782 4 ปีที่แล้ว

    Thankyou mam ,it is very useful

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

    Mam for "char" program output shows capital alphabet and small alphabets and symbols .
    It doesn't show any 97, 98 values can you please explain

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

    If we write ; after While (i++) , the loop will be terminated and the control will go out of loop and show the End of program

    • @Logan-ig7sm
      @Logan-ig7sm ปีที่แล้ว

      Nhi bhai esa nhi ho rha