C_28 If-Else Statement in C | C Programming Tutorials

Sdílet
Vložit
  • čas přidán 9. 01. 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

Komentáře • 194

  • @shashikamal2481
    @shashikamal2481 Před 3 lety +213

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

  • @osmanpasha2252
    @osmanpasha2252 Před 3 lety +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 Před 3 lety +28

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

  • @hariparuchuru3858
    @hariparuchuru3858 Před 2 lety +25

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

  • @awadhbalshikshaniketan2004

    Best video i have ever seen🔥

  • @sudipacharya1974
    @sudipacharya1974 Před 3 lety +2

    ❤️❤️ way of teaching is just 🔥🔥

  • @beautyofworld8130
    @beautyofworld8130 Před rokem +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

  • @deerghaneja1217
    @deerghaneja1217 Před 2 lety +13

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

  • @hadieudonne433
    @hadieudonne433 Před 3 lety +1

    Wow, thank you so for your hard working

  • @solomonfensico
    @solomonfensico Před 3 lety +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 Před 2 lety +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 Před 2 lety

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

    • @satyajitmanna8501
      @satyajitmanna8501 Před 2 lety

      maam age er aga & likhen ni.

    • @rukayatmuhammed3670
      @rukayatmuhammed3670 Před rokem

      Mheen...thanks

  • @bcadiary6958
    @bcadiary6958 Před 3 lety +2

    I really admire your teaching thanku mam

  • @syedalifathimaa9618
    @syedalifathimaa9618 Před 3 lety

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

  • @brindhavenugopal4395
    @brindhavenugopal4395 Před 3 lety +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.

  • @manvendra91102
    @manvendra91102 Před 3 lety +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

  • @rukayatmuhammed3670
    @rukayatmuhammed3670 Před rokem

    Thank you Jenny

  • @chamaridesilva1668
    @chamaridesilva1668 Před rokem

    very useful. thank you

  • @jayarogan7100
    @jayarogan7100 Před 10 měsíci

    Your explanation is amazing maam

  • @alokmishra2804
    @alokmishra2804 Před 3 lety

    Splendid 👌 👌 👌

  • @teenagerexperiments757
    @teenagerexperiments757 Před 6 měsíci +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

  • @SKMTutorialsHub
    @SKMTutorialsHub Před 3 lety

    Good explanation 👍

  • @tps8470
    @tps8470 Před 2 lety +1

    Thanks a lot Mam

  • @satishprasadyadav
    @satishprasadyadav Před rokem

    Thank you so much mam.

  • @FataiAminat-iz2yc
    @FataiAminat-iz2yc Před 19 dny

    Thank you ma🥰

  • @bhaweshpatil2021
    @bhaweshpatil2021 Před 3 lety

    Love u and ur video

  • @bellalmahtab8220
    @bellalmahtab8220 Před 3 lety

    Great Mam keep it up

  • @naveenmarri-0242
    @naveenmarri-0242 Před 3 lety +8

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

  • @jitendrapratapsingh9189
    @jitendrapratapsingh9189 Před 2 lety +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

  • @bcadiary6958
    @bcadiary6958 Před 3 lety +1

    Amazing

  • @chirag6216
    @chirag6216 Před 2 lety

    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.

  • @sulectures2773
    @sulectures2773 Před 3 lety

    Tq so much ma'am

  • @sharmisthasinhakashyap4949

    Waiting For more Videos specially array functions and stack queue

  • @malviyatimes
    @malviyatimes Před 3 lety +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.

  • @pampapathi6014
    @pampapathi6014 Před 2 lety

    Thank you mam👍

  • @shohansikder6105
    @shohansikder6105 Před 2 lety

    Thank u😍

  • @rukayatmuhammed3670
    @rukayatmuhammed3670 Před rokem

    Thank you ma'am

  • @smartdude4574
    @smartdude4574 Před 3 lety +2

    Her voice 🔥✨💫

  • @myself1480
    @myself1480 Před 3 lety

    Thanks mam

  • @helpandsuppotsr1.034
    @helpandsuppotsr1.034 Před 2 lety +2

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

  • @BiqSam2002
    @BiqSam2002 Před 6 měsíci

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

  • @premraj1456
    @premraj1456 Před 3 lety

    Well explain mam

  • @tithighosh2169
    @tithighosh2169 Před 3 lety +1

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

  • @lalitharamachandra6659
    @lalitharamachandra6659 Před 6 měsíci

    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

  • @continnum_radhe-radhe
    @continnum_radhe-radhe Před 2 lety +1

    🔥🔥🔥

  • @sanchay_khatwani
    @sanchay_khatwani Před 2 lety

    Osm mam 😊

  • @sainithyamsani4062
    @sainithyamsani4062 Před 2 lety +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.

  • @hariprasadmaguluri9695

    Good

  • @chaitralinaidu8019
    @chaitralinaidu8019 Před 2 lety

    very helpful videos for begnniers

  • @nitishraj5342
    @nitishraj5342 Před 3 lety +3

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

  • @cosolution8641
    @cosolution8641 Před 3 lety +2

    Plz make video on how to score good in semester exam

  • @seenusunny981
    @seenusunny981 Před 2 lety

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

  • @user-jp7cr1vj6c
    @user-jp7cr1vj6c Před 7 měsíci

    From Karnataka ❤

  • @jch1812
    @jch1812 Před 3 lety +2

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

  • @mohan_yerra
    @mohan_yerra Před rokem

    ❣️

  • @vectorpharmacy284
    @vectorpharmacy284 Před rokem +5

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

  • @meghasinha1706
    @meghasinha1706 Před 3 lety

    Just one word amazing

  • @uttej1390
    @uttej1390 Před 3 lety +8

    Lec starts at 2:22

  • @ashwani8721
    @ashwani8721 Před 3 lety +4

    1st viewer...

  • @movefree123
    @movefree123 Před 2 lety +1

    Mam can you explain nested if elses

  • @dhanyashreebhat4564
    @dhanyashreebhat4564 Před 3 lety

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

  • @rrrttt4964
    @rrrttt4964 Před 2 lety

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

  • @parameswararaobyreddy7696

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

  • @sammiefazzie
    @sammiefazzie Před 11 měsíci

    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,

  • @shoravpawar2106
    @shoravpawar2106 Před 3 měsíci

    😮

  • @viaansen9785
    @viaansen9785 Před 3 lety +3

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

  • @abhayroy328
    @abhayroy328 Před rokem +1

    Mam you sooo... Prety❤

  • @abdulnasarachakzai2604

    maam which time you will be uplode java lectuers

  • @Anandnayakyouth
    @Anandnayakyouth Před 2 lety +1

    Very nice ring tone #niceringtonewaalabgm

  • @Lovingmine181
    @Lovingmine181 Před 2 lety

    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

  • @madhumalipremarathna3038
    @madhumalipremarathna3038 Před 3 lety +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 Před 3 lety +2

      Yeah correct

    • @baluch9558
      @baluch9558 Před rokem +1

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

    • @junedpathan4466
      @junedpathan4466 Před rokem +1

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

  • @malleshyadav7366
    @malleshyadav7366 Před 3 lety

    Please DBMS series,,,🙏🙏🙏🙏

  • @Aditya-Royal
    @Aditya-Royal Před 3 měsíci +1

    IMP point at 8:22

  • @user-ri4tq8wz5o
    @user-ri4tq8wz5o Před 7 měsíci

    Present mam

  • @UPHNaveenS-we6uh
    @UPHNaveenS-we6uh Před 3 lety +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.

  • @sushanthchandan4263
    @sushanthchandan4263 Před 2 lety +1

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

  • @princeyadav9268
    @princeyadav9268 Před 3 lety +1

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

  • @rushabpardhi1175
    @rushabpardhi1175 Před 3 lety

    this language help in campus placement

  • @kashishmaurya5198
    @kashishmaurya5198 Před 9 měsíci

    Mam all control statement par practice program provide kar dijiye

  • @kelvipatel1220
    @kelvipatel1220 Před 7 měsíci

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

  • @sabyasputnik_2004
    @sabyasputnik_2004 Před rokem

    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

  • @lalitharamachandra6659
    @lalitharamachandra6659 Před 6 měsíci

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

  • @krupa1963
    @krupa1963 Před 3 lety +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 Před 3 lety +3

      Yes broh I to got same same out

    • @prajwal7257
      @prajwal7257 Před 3 lety +2

      Ok I well assume

    • @priyanshuhurmade8626
      @priyanshuhurmade8626 Před 2 lety +5

      Bro not 30 its 32

    • @saineeraj1326
      @saineeraj1326 Před 2 lety +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 Před 2 lety

      Correct

  • @vasumeduri5103
    @vasumeduri5103 Před rokem

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

  • @gmramkumar9536
    @gmramkumar9536 Před 3 lety

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

  • @ganeshdandiboyina7171
    @ganeshdandiboyina7171 Před 2 lety

    U ra so beautiful and your teaching also so beautiful

  • @741ibrahim2
    @741ibrahim2 Před 3 lety

    and same for 32 also mam

  • @riteshsawardekar2760
    @riteshsawardekar2760 Před 2 lety

    2:28
    Start

  • @etfc944
    @etfc944 Před 3 lety

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

    • @harneksingh6178
      @harneksingh6178 Před 2 lety +1

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

  • @harshj2654
    @harshj2654 Před 2 lety

    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

  • @isaac-victorshonowo1838
    @isaac-victorshonowo1838 Před 9 měsíci

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

  • @741ibrahim2
    @741ibrahim2 Před 3 lety

    mam if age is 25 then else block statement is printed

  • @helpandsuppotsr1.034
    @helpandsuppotsr1.034 Před 2 lety

    Started from 2:27

  • @MVREducation
    @MVREducation Před 3 lety

    Video starts 2:25

  • @ParamitaDey-bi1mg
    @ParamitaDey-bi1mg Před 2 lety

    What is kemo?

  • @sarojbhai3030
    @sarojbhai3030 Před rokem

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

  • @anishazaidi9009
    @anishazaidi9009 Před 3 lety

    Can I Also learn for u ... But mam u using the c programme and i m learning python programme reply me mam fast

  • @rohithnanda4546
    @rohithnanda4546 Před 3 lety

    In scanf & is missing mam

  • @honeyguptaji8026
    @honeyguptaji8026 Před 3 lety

    अगर else ब्लॉक के बाद printf wala part na likhe तो क्या मैं प्रोग्राम गलत हो जाएगा मेरा मतलब की printf ( "out of if else ") लिखना जरूरी है क्या हम डायरेक्ट एस ब्लॉक खत्म होने के बाद क्या getch(); लिख दे।

  • @apcreation....6510
    @apcreation....6510 Před 2 lety +1

    1) Enter age 25
    age 25
    Go home
    Out of else
    2)Enter age 32
    age 32
    Go home
    Out of else
    3) Enter age 28
    age 27
    Coffee with me
    Go home
    Out of else

  • @PrapthiBP
    @PrapthiBP Před měsícem

    Mam in scanf & operator missing

  • @_adyasha5056
    @_adyasha5056 Před rokem

    Mam gate exam 2023 ke liye kya kuch scope hai....help me mam