C_28 If-Else Statement in C | C Programming Tutorials

Поділитися
Вставка
  • Опубліковано 9 січ 2021
  • In this video, I have discussed if-else control statement in C Language | Syntax, Working, Flowchart, Examples, Programs
    Best C Programming Tutorials : • Programming in C
    *******************************************
    Connect & Contact Me:
    My Second Channel Link: bit.ly/354n7C7
    Facebook: / jennys-lectures-csit-n...
    Quora: www.quora.com/profile/Jayanti...
    Instagram: / jayantikhatrilamba
    Twitter: / khatrijenny
    *********************************************
    More Playlists:
    C++ Programming Tutorials: • Lec 1: How to Install ...
    Placement Series: • Placements Series
    Data Structures and Algorithms: https: • Data Structures and Al...
    Design and Analysis of Algorithms(DAA): • Design and Analysis of...
    Python Full Course: • Python - Basic to Advance
    Printing Pattern in C: • Printing Pattern Progr...
    Dynamic Programming: • Dynamic Programming
    Operating Systems: // • Operating Systems
    DBMS: • DBMS (Database Managem...
    #cprogramming #jennyslectures #programming #clanguage #controlstatements #ifelse

КОМЕНТАРІ • 194

  • @shashikamal2481
    @shashikamal2481 3 роки тому +213

    Attendance here👍🏻...just for ma'am 😁❤️

  • @osmanpasha2252
    @osmanpasha2252 3 роки тому +29

    When I will watch your video then I will get complet clarity on topic thanks a lot mam and your way of teaching is awesome hands of to your teaching and didn't ever watched this type of teaching style

  • @elavarasan_r154
    @elavarasan_r154 3 роки тому +28

    1. Enter 25 and 32
    Go home
    Out of the if-else
    Both also same output

  • @awadhbalshikshaniketan2004
    @awadhbalshikshaniketan2004 3 роки тому +6

    Best video i have ever seen🔥

  • @sudipacharya1974
    @sudipacharya1974 3 роки тому +2

    ❤️❤️ way of teaching is just 🔥🔥

  • @hariparuchuru3858
    @hariparuchuru3858 2 роки тому +25

    1. Enter age:25
    25
    Go home
    Out of if-else
    2. Enter age:32
    32
    Go home
    Out of if-else

  • @deerghaneja1217
    @deerghaneja1217 2 роки тому +13

    Mam...the way u just taught us is incredible♥️♥️

  • @bcadiary6958
    @bcadiary6958 3 роки тому +2

    I really admire your teaching thanku mam

  • @beautyofworld8130
    @beautyofworld8130 Рік тому +1

    Bcz ur teaching again I got interest in c language mam... starting I'm worried about I'm not getting..but now I'm clear understanding

  • @hadieudonne433
    @hadieudonne433 3 роки тому +1

    Wow, thank you so for your hard working

  • @teenagerexperiments757
    @teenagerexperiments757 6 місяців тому +2

    mam both have same answer
    age=25
    go home
    out of if and else
    or
    age=32
    go home
    out of if and else

  • @syedalifathimaa9618
    @syedalifathimaa9618 3 роки тому

    Even in this night time you are uploading videos , thanks for it

  • @brindhavenugopal4395
    @brindhavenugopal4395 3 роки тому +4

    ASSIGNMENT(11.53)
    Mam after compilation I got only one error that is MISPLACE ELSE.
    I got an output after clear the above error mam.
    Thank u soo much mam. I understood very well.

  • @rukayatmuhammed3670
    @rukayatmuhammed3670 Рік тому

    Thank you Jenny

  • @jayarogan7100
    @jayarogan7100 10 місяців тому

    Your explanation is amazing maam

  • @solomonfensico
    @solomonfensico 3 роки тому +11

    AN ERROR IN THE LECTURE’S LAST CODE-
    Hi Jenny ma'am, Firstly you're my fav teacher by far. I love the way you teach. Top notch. Thank you so much for your lectures. I started learning C (my first computer language) with the help of your videos and I feel so confident. Please keep up the good work. God bless you.
    Secondly, after many repeated failed attempts. I finally realized that there was an error in the code @12:40 (the 'address of' operator '&' is missing in scanf function),
    Because of which the whole code wasn't getting executed., also it didn't display the error in the code too).
    I don't know how others haven't realized this but Yes this was a great exercise for me.
    Hope this helps someone having a similar issue. Not a major 1 though.

    • @yumyum9892
      @yumyum9892 2 роки тому +5

      abe kam se kam itna to khud ki akal lagani chahie na......tu kya chahta hai, grammer seekhne ke vakt koi tujhe vapas abcd revise karae..maam is also human only....it is the duty of student to neglect small mistakes and move ahead!!

    • @satyajitmanna8501
      @satyajitmanna8501 2 роки тому

      scanf("%d",&age); hoba

    • @satyajitmanna8501
      @satyajitmanna8501 2 роки тому

      maam age er aga & likhen ni.

    • @rukayatmuhammed3670
      @rukayatmuhammed3670 Рік тому

      Mheen...thanks

  • @SKMTutorialsHub
    @SKMTutorialsHub 3 роки тому

    Good explanation 👍

  • @chamaridesilva1668
    @chamaridesilva1668 Рік тому

    very useful. thank you

  • @manvendra91102
    @manvendra91102 3 роки тому +5

    Please make a video on graphs in data structure I am waiting for that video your explanation is very good mam thank you so much

  • @alokmishra2804
    @alokmishra2804 3 роки тому

    Splendid 👌 👌 👌

  • @tps8470
    @tps8470 2 роки тому +1

    Thanks a lot Mam

  • @bhaweshpatil2021
    @bhaweshpatil2021 3 роки тому

    Love u and ur video

  • @satishprasadyadav
    @satishprasadyadav Рік тому

    Thank you so much mam.

  • @sulectures2773
    @sulectures2773 3 роки тому

    Tq so much ma'am

  • @FataiAminat-iz2yc
    @FataiAminat-iz2yc 16 днів тому

    Thank you ma🥰

  • @bellalmahtab8220
    @bellalmahtab8220 3 роки тому

    Great Mam keep it up

  • @bcadiary6958
    @bcadiary6958 3 роки тому +1

    Amazing

  • @pampapathi6014
    @pampapathi6014 2 роки тому

    Thank you mam👍

  • @shohansikder6105
    @shohansikder6105 2 роки тому

    Thank u😍

  • @rukayatmuhammed3670
    @rukayatmuhammed3670 Рік тому

    Thank you ma'am

  • @chirag6216
    @chirag6216 2 роки тому

    in both the cases of 25 and 32, else statements and out of ifelse would be printed and for 26-29 : age,you can have coffee with out of if else would be printed.(if curly braces are present).and if not printed then go home will aslo be printed.

  • @smartdude4574
    @smartdude4574 2 роки тому +2

    Her voice 🔥✨💫

  • @sharmisthasinhakashyap4949
    @sharmisthasinhakashyap4949 3 роки тому +1

    Waiting For more Videos specially array functions and stack queue

  • @malviyatimes
    @malviyatimes 3 роки тому +6

    Dear Jenny Some Questions for you.
    1. How to become computer scientist.
    2. How to develop/create low level language like assembly language.
    3. How to develop/create high level language like python, kotlin, c++ and more.

  • @physicsanduniverse7902
    @physicsanduniverse7902 3 роки тому

    Thank u mam

  • @premraj1456
    @premraj1456 3 роки тому

    Well explain mam

  • @helpandsuppotsr1.034
    @helpandsuppotsr1.034 2 роки тому +2

    Liked the video. Can we have a correct order to learn coding 👍

  • @BiqSam2002
    @BiqSam2002 6 місяців тому

    I was late for my sem_1 buh currently I'm doing fair....!
    thnkz mam...!🙏🙏🙏

  • @tithighosh2169
    @tithighosh2169 3 роки тому +1

    Ma'am please upload videos of command line argument in c. ❤️❤️

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 2 роки тому +1

    🔥🔥🔥

  • @naveenmarri-0242
    @naveenmarri-0242 3 роки тому +8

    You have to maintain an another channel of beauty tips💡😄.. Pretty beautiful teacher ever🥰

  • @sanchay_khatwani
    @sanchay_khatwani 2 роки тому

    Osm mam 😊

  • @hariprasadmaguluri9695
    @hariprasadmaguluri9695 3 роки тому

    Good

  • @chaitralinaidu8019
    @chaitralinaidu8019 2 роки тому

    very helpful videos for begnniers

  • @seenusunny981
    @seenusunny981 2 роки тому

    Both the cases same output will be generated mam. i. e, gohome
    Outof if-else

  • @lalitharamachandra6659
    @lalitharamachandra6659 6 місяців тому

    10:50 hello mam
    For age:25
    output: go home
    Out of if-else block
    For age:32
    Output :go home
    Out of if-else block
    Thanks mam
    Your classes are very helpful for me mam

  • @user-jp7cr1vj6c
    @user-jp7cr1vj6c 6 місяців тому

    From Karnataka ❤

  • @jitendrapratapsingh9189
    @jitendrapratapsingh9189 2 роки тому +3

    enter age :
    25
    age :25
    go to home
    out of if-else
    enter age :
    32
    age :32
    go to home
    out of if-else

  • @cosolution8641
    @cosolution8641 3 роки тому +2

    Plz make video on how to score good in semester exam

  • @nitishraj5342
    @nitishraj5342 3 роки тому +3

    thnks a lot mam . please also share the pdf notes 🙏🙏🙏

  • @meghasinha1706
    @meghasinha1706 3 роки тому

    Just one word amazing

  • @sainithyamsani4062
    @sainithyamsani4062 2 роки тому +1

    Mam whenever you give a homework at the end of the video please comment on that question in your next video.Provide answer for that homework in your next
    video,so that we can know whether we got correct answer or not.

  • @mohan_yerra
    @mohan_yerra Рік тому

    ❣️

  • @vectorpharmacy284
    @vectorpharmacy284 Рік тому +5

    In the first program there is a erroe
    you didnot right & in scanf().

  • @ashwani8721
    @ashwani8721 3 роки тому +4

    1st viewer...

  • @movefree123
    @movefree123 2 роки тому +1

    Mam can you explain nested if elses

  • @dhanyashreebhat4564
    @dhanyashreebhat4564 3 роки тому

    Mam u use two if condition in example program... if there is 2 if condition then it become nested if right??..

  • @jch1812
    @jch1812 3 роки тому +2

    Mjhy c , c++, java aati h but here i come for only you.

  • @uttej1390
    @uttej1390 3 роки тому +8

    Lec starts at 2:22

  • @rrrttt4964
    @rrrttt4964 2 роки тому

    Gr8 explained..💞
    But Change the thumbnail of the vedio..
    Main scroll kr jata hun. Pta Ni prta...sub Aik jese hain...🤧🤩

  • @abhayroy328
    @abhayroy328 Рік тому +1

    Mam you sooo... Prety❤

  • @malleshyadav7366
    @malleshyadav7366 3 роки тому

    Please DBMS series,,,🙏🙏🙏🙏

  • @viaansen9785
    @viaansen9785 3 роки тому +3

    scanf("%d",&age) //
    //address sign was missing in program.

  • @shoravpawar2106
    @shoravpawar2106 3 місяці тому

    😮

  • @Anandnayakyouth
    @Anandnayakyouth 2 роки тому +1

    Very nice ring tone #niceringtonewaalabgm

  • @parameswararaobyreddy7696
    @parameswararaobyreddy7696 3 роки тому

    Madam please suggest me about the computer programming languages books for beginners

  • @sammiefazzie
    @sammiefazzie 11 місяців тому

    when i entered 25 and 32, the INT was printed after that It printed the same output "go home" and after the else statement, " out of if else " was also printed out,

  • @Aditya-Royal
    @Aditya-Royal 2 місяці тому +1

    IMP point at 8:22

  • @madhumalipremarathna3038
    @madhumalipremarathna3038 3 роки тому +33

    12:22
    Enter age : 25
    Age : 25
    Go home
    Out of if-else
    Enter age : 32
    Age : 32
    Go home
    Out of if-else

    • @krishnapriya3872
      @krishnapriya3872 3 роки тому +2

      Yeah correct

    • @baluch9558
      @baluch9558 Рік тому +1

      Bro error vastundi program lo , because there is no "& " in scanf

    • @junedpathan4466
      @junedpathan4466 Рік тому +1

      @@baluch9558 yes ma'am forgot that but you can consider that bro

  • @kelvipatel1220
    @kelvipatel1220 7 місяців тому

    It won't take input in any case cause & is not used with scanf() function

  • @user-ri4tq8wz5o
    @user-ri4tq8wz5o 6 місяців тому

    Present mam

  • @rushabpardhi1175
    @rushabpardhi1175 3 роки тому

    this language help in campus placement

  • @ganeshdandiboyina7171
    @ganeshdandiboyina7171 2 роки тому

    U ra so beautiful and your teaching also so beautiful

  • @krupa1963
    @krupa1963 3 роки тому +74

    1)
    Enter age:25
    age : 25
    Go home
    Out of if-else
    2)
    Enter age : 30
    Age : 30
    Go home
    Out of if-else
    3)
    Enter age : 28
    Age : 28
    Coffee with me
    Go home
    Out of if-else
    Note:assuming every printf statement is having a new line

    • @iasaspirant1441
      @iasaspirant1441 3 роки тому +3

      Yes broh I to got same same out

    • @prajwal7257
      @prajwal7257 3 роки тому +2

      Ok I well assume

    • @priyanshuhurmade8626
      @priyanshuhurmade8626 2 роки тому +5

      Bro not 30 its 32

    • @saineeraj1326
      @saineeraj1326 2 роки тому +6

      Your answer is wrong bro
      There condition is greather than 25,and less than 30,it means it should be 26,27,28,29
      If u
      Case-1
      Enter age:25
      Out of if-else
      Case-2
      Enter age:32
      Out of if-else

    • @dileepnagam
      @dileepnagam 2 роки тому

      Correct

  • @Lovingmine181
    @Lovingmine181 2 роки тому

    Mam can u explain about identifying errors while writing the program and after executing the program .It is very hard to identifying the errors in mobile not only for me because somany engineering students has doesn't have their own laptops or system.Mam and also explain how can we learn coding by using the mobile

  • @princeyadav9268
    @princeyadav9268 3 роки тому +1

    mam your coding is not excuted it show (segementation fault)
    because you are not using (&age in scanf funtion)

  • @abdulnasarachakzai2604
    @abdulnasarachakzai2604 3 роки тому

    maam which time you will be uplode java lectuers

  • @kashishmaurya5198
    @kashishmaurya5198 9 місяців тому

    Mam all control statement par practice program provide kar dijiye

  • @UPHNaveenS-we6uh
    @UPHNaveenS-we6uh 3 роки тому +2

    In scanf you didn't mention &. Will it show error during execution.
    Thank you for sharing your knowledge with us. Keep educating us mam.

    • @gouthamnayak8086
      @gouthamnayak8086 2 роки тому

      yes because we have to give adress of variable

  • @sabyasputnik_2004
    @sabyasputnik_2004 Рік тому

    7:25 Dangling else error // else without previous if
    8:24 always use curly braces for the if and else block
    Jaddi in IF-ELSE a if block containing more than one statement & we forgot to put curly braces to defined it region wewill get error bcoz there should be no other statem3nt between If statement and else statement
    Mane if saraaru else part arambha jadi ame IF-ELSE byabahara karuche majhi re kicchi jatara nahin
    So to avoid during use of IF-ELSE
    Put the else part immidiate after the if part

  • @PrapthiBP
    @PrapthiBP Місяць тому

    Mam in scanf & operator missing

  • @741ibrahim2
    @741ibrahim2 3 роки тому

    and same for 32 also mam

  • @lalitharamachandra6659
    @lalitharamachandra6659 6 місяців тому

    4:33 mam you had not mentioned (&) symbol in scanf( ) function

  • @sushanthchandan4263
    @sushanthchandan4263 2 роки тому +1

    1.
    25
    Go home
    Out of if else
    2.
    32
    Coffee with me

  • @akshayachevula4489
    @akshayachevula4489 8 місяців тому

    2.22

  • @ParamitaDey-bi1mg
    @ParamitaDey-bi1mg 2 роки тому

    What is kemo?

  • @vasumeduri5103
    @vasumeduri5103 Рік тому

    Mam at starting of the program in scan f you didn't write & symbol . You just wrote age it's & age

  • @milankumar1425
    @milankumar1425 2 роки тому

    2:30

  • @sarojbhai3030
    @sarojbhai3030 Рік тому

    If condition ke andar se function call keise kare ???

  • @riteshsawardekar2760
    @riteshsawardekar2760 2 роки тому

    2:28
    Start

  • @sourabhkale5211
    @sourabhkale5211 Рік тому +2

    Home work Ans :-
    1st Question -
    Age is 25
    Our condition is
    Is ( Age > 25 && age < 30 )
    Age is 25 means In Logical && = ( First False (0) && If False can't check second ) So Ans is 0 False it means If Block Not Executing.
    Control directly going to else block and ,
    * printing Age 25.
    And then Printing remaing Code like
    * Go Home
    * out of the code.
    2nd Question -
    Age is 32
    Condition is (age >25 && age

    • @parinitaverma4109
      @parinitaverma4109 Рік тому

      I'm having difficulties to run program
      If else not working it showing no such file or directory what to do help me

    • @sourabhkale5211
      @sourabhkale5211 Рік тому +1

      @@parinitaverma4109 It happen because You Didn't choose Folder Properly That's Why Compiler giving this Error compilation time
      You can Do like.
      1. Open Vs Code --> Create New Folder --> Create New File File name Is Whatever but Extension is Filename.c
      2 . write Your If Statement Code Properly
      3. Compile it Properly gcc Filename.c
      4. Compiler convert .c file in .exe file
      Then you can run this by using .\ exefilename.exe
      5 . if you Follow this step You will get result .

    • @parinitaverma4109
      @parinitaverma4109 Рік тому +1

      @@sourabhkale5211 thank you so much it's working ☺

    • @sourabhkale5211
      @sourabhkale5211 Рік тому +1

      @@parinitaverma4109 welcome..😊

    • @sudhakarreddy8836
      @sudhakarreddy8836 Рік тому

      Corrrestuuu

  • @MVREducation
    @MVREducation 3 роки тому

    Video starts 2:25

  • @rohithnanda4546
    @rohithnanda4546 3 роки тому

    In scanf & is missing mam

  • @thibakarangunasekaran
    @thibakarangunasekaran 2 роки тому

    for scanf & is missing

  • @harshj2654
    @harshj2654 2 роки тому

    Mam you did a mistake in scanf line you forgot to write adress symbol & ..... So it had been compile in an other way means it shows another age value while we enter age in between 25 to 30

  • @etfc944
    @etfc944 3 роки тому

    How to calculate the condition of int z=a&(a>>1)

    • @harneksingh6178
      @harneksingh6178 2 роки тому +1

      bro firstly a right shift 1 condition will apply first in bitwse then a biwise and a operator will be executed

  • @uthprekshaunni7829
    @uthprekshaunni7829 Рік тому

    There is no "&" in scanf before age. Is it okay?

  • @helpandsuppotsr1.034
    @helpandsuppotsr1.034 2 роки тому

    Started from 2:27

  • @gmramkumar9536
    @gmramkumar9536 3 роки тому

    Mam one doubt.... My age is 18. Now... what will be your output?? Coffee?

  • @isaac-victorshonowo1838
    @isaac-victorshonowo1838 9 місяців тому

    Watched and Understood ❤
    You didn't map your age in scanf to the age variable... i.e &age. Does it not matter here?