Conditionals (Switch)

Sdílet
Vložit
  • čas přidán 16. 06. 2018
  • C Programming & Data Structures: Conditionals (Switch)
    Topics discussed:
    1) What is the switch statement?
    2) The relationship between long else if constructs and switch construct.
    3) How does switch work?
    4) Five Important facts related to switch statement.
    C Programming Lectures: goo.gl/7Eh2SS
    Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
    Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
    Contribute: www.nesoacademy.org/donate
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy.org/recommende...
    Website ► www.nesoacademy.org/
    Forum ► forum.nesoacademy.org/
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #CProgrammingByNeso #CProgramming #SwitchStatement

Komentáře • 155

  • @Dnsx_plus
    @Dnsx_plus Před 4 lety +78

    At first, I was skipping through these videos because I already knew if, else, and more, but then I realized that he explained it extremely deep, and in no other way other you-tubers explain concepts.

  • @sowbhagyaks8025
    @sowbhagyaks8025 Před 4 lety +78

    i didn't see anywhere of this type of coaching thanks a lot

  • @rorosaria26
    @rorosaria26 Před 4 lety +34

    Greetings from Brazil!!

  • @Andrew_k_
    @Andrew_k_ Před rokem +9

    I've been learning c/c++ for 2 years and still learning new things from you
    thank you nesoacademy

  • @chichakrustamova5991
    @chichakrustamova5991 Před 2 lety +21

    It is the most perfect explanation i’ve ever seen. Thanks a lot for sharing your knowledge❣️

  • @sweetyrai3019
    @sweetyrai3019 Před 3 lety +14

    All the lecture of neso academy is very helpful for student whether it was analog electronics or any programming language. Thanku neso academy and teachers of this platform for teaching us .

  • @preranakubsad3727
    @preranakubsad3727 Před 2 lety +4

    This channel is a life savior! I am so glad to have found this channel. Can't thank this channel and these great teachers enough🙇‍♀️

  • @compangit1524
    @compangit1524 Před rokem +3

    Comments for myself: only those expressions which return an integral constant value (integer) are allowed as case labels. Variable expressions are not allowed as case labels, but macros are allowed. Default case can be put anywhere inside the swtich, it doesn't have to be the last always.

    • @AQpizza
      @AQpizza Před 8 měsíci

      love how every video I scroll down and see you comment to your self a well summarized sentence of the main points

  • @Bak2BasiKs
    @Bak2BasiKs Před 10 dny

    Some people should be teachers. You my friend are one of those people

  • @princeyaduvanshi9519
    @princeyaduvanshi9519 Před 2 lety +8

    In this lecture we were also able to learn that which we did not learn in college. Thanks you 🤗

  • @Youtubecreatorme
    @Youtubecreatorme Před 2 měsíci

    Hats off Mr...I'm addicted to your voice...

  • @anshurajsinghranawat6732
    @anshurajsinghranawat6732 Před 4 lety +8

    Your explanation are so good.
    Thanks for this,

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

    Your english and explanation are too good and clear😇thank you so much for this video🥰

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

    Thank you soooooo much
    I missed my CCP class today
    But now it's all clear with your explanation

  • @Youtubecreatorme
    @Youtubecreatorme Před 2 měsíci

    The way you explain, n the depth of the concepts ...

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

    I saw many teachers who is best in there field but if we talk about Jaspreet sir ,there is no match

  • @venkateshthirunagiri85
    @venkateshthirunagiri85 Před 5 lety +5

    thank you sir
    your videos are wonderful ,you helped me alot .
    currently i'm preparing for interviews mostly i'm preparing from your videos only.
    thank you

  • @jimmymesa
    @jimmymesa Před 5 lety +3

    Cool tutorial on the switch construct in C.

  • @mind-therapist.
    @mind-therapist. Před 4 lety +1

    My favorite tutor on c programming.

  • @prikshatsharma2770
    @prikshatsharma2770 Před 3 lety

    Awesome explanation in every subject neso academy...keep soaring high...👍👍

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

    U r the best bro .... U r making things look so simple to me... .💗

  • @abhishekkesharwani4096
    @abhishekkesharwani4096 Před 5 lety +4

    You are real Teacher 🦁

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

    Such a nice explanation ❤️❤️❤️❤️❤️❤️👍👍👍👍👍👍. Superb

  • @blue-ki2vg
    @blue-ki2vg Před 4 lety +2

    Wonderful explanation and easy to understand. Thanks! 👍

  • @mayankjadhav4509
    @mayankjadhav4509 Před 6 lety +2

    Thanks for posting again in this playlist😊

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

    Very informative and clean 🔥🔥🔥

  • @trikanthsrinadhu9601
    @trikanthsrinadhu9601 Před rokem

    what a clearful explaion sir '
    superrrrbbbb I loved the way u explain.

  • @elionbio7977
    @elionbio7977 Před 2 lety

    Wow you explained it very well. Thank you! You earned a new subscriber :)

  • @Anjali-uc1er
    @Anjali-uc1er Před 3 lety +2

    These are really helpful . Thank you 🙏

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

    Man you made me like programming

  • @UniversalSaad
    @UniversalSaad Před 2 lety

    You are Best of the Best, sir. Honorable respect to you!

  • @SoNu-mf6xf
    @SoNu-mf6xf Před 5 lety +2

    One of the best lectures on u tube

  • @user-fh6zv1hn7z
    @user-fh6zv1hn7z Před měsícem

    really excellent coaching thanks

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

    Too good!!!!, just loved it!!

  • @mallorymageau6244
    @mallorymageau6244 Před 2 lety

    thank you! great explanation.

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

    Thank you Sir... You explain really well

  • @qazafipalestine
    @qazafipalestine Před 11 měsíci +1

    Thank you bro❤️❤️❤️
    From Palestine ❤️🇵🇸

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

    Amazing lecture ❤

  • @deepakbhardwaj3141
    @deepakbhardwaj3141 Před 6 lety +2

    Finally again the nice one👍

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

    Damn. Rich content! Thanks :-)

  • @manmaxify
    @manmaxify Před 4 lety +2

    Very clear explanation thanks a lot

  • @aryankathpal4330
    @aryankathpal4330 Před 3 lety

    SIR your teaching skills are legendary.....ty

  • @sruthimajhi5610
    @sruthimajhi5610 Před rokem

    Beyond perfect!

  • @GoodBoy-bt7kp
    @GoodBoy-bt7kp Před 5 lety +2

    What a teacher😍

  • @vardanshaswat_8594
    @vardanshaswat_8594 Před 4 lety +1

    Loved it amazing sir

  • @code_wolf_
    @code_wolf_ Před 2 lety

    Very helpful to me, thank you so much sir 🙏🏻

  • @johnyyogi234
    @johnyyogi234 Před 2 lety

    How is this video more perfect than perfect???

  • @ShaileshPatel-cg4nz
    @ShaileshPatel-cg4nz Před 2 lety

    Super Clean explanation sir

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

    So informative!!!

  • @sowbhagyaks8025
    @sowbhagyaks8025 Před 4 lety +8

    sir you done a excellent job, anyone can understand your teaching

    • @zainu9250
      @zainu9250 Před 3 lety

      Yeah actually you’re right

  • @Mmrf6030
    @Mmrf6030 Před 2 lety

    Thanks sir for explaining 🙏🙏

  • @ZAKARIA-sq1nu
    @ZAKARIA-sq1nu Před 2 lety +1

    Really legit man... Thanks alot..💯

  • @assadwazeer200
    @assadwazeer200 Před rokem

    Nicely explained well done ✅

  • @suvasishmajumder7794
    @suvasishmajumder7794 Před rokem

    Very lovely video. You are a true INDIAN

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

    Thank you so much sir 🙏🙏you made it programming so easy👍👍

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

    A night before my exam you saved me. I love you 😗😂

  • @SHIVAMOJHA21
    @SHIVAMOJHA21 Před 2 lety

    Thank You 👍🏻

  • @Pritamdas-bg7fp
    @Pritamdas-bg7fp Před 6 lety +2

    very good explanation

  • @shreyasninave7363
    @shreyasninave7363 Před 4 lety

    Great work sirji

  • @sonusambharwal8828
    @sonusambharwal8828 Před 4 lety +6

    Outstanding sir

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

      Dil se thanks sir...your lectures are really very nice and helpful....I salute your efforts and explanation style sir....

  • @SyedaMasooma_14
    @SyedaMasooma_14 Před 2 lety

    Thank you so much

  • @mstfarzanaakther
    @mstfarzanaakther Před 8 měsíci

    Thank you

  • @beldewpie3174
    @beldewpie3174 Před 2 lety

    U explained better than my teacher not better superb extraordinary and so on

  • @Aabara_ka_dabara
    @Aabara_ka_dabara Před rokem

    awesome points 💋💋

  • @shortly7770
    @shortly7770 Před 5 lety +3

    I love I love I love watching ur videos , u make me addicted of ur videos

  • @ilakkya2387
    @ilakkya2387 Před 2 lety

    Excellent teaching

  • @vaibhavpal1655
    @vaibhavpal1655 Před 2 lety

    Thank you so much Sir for explaining so well. Radhe Radhe 🙏🙏🙏

  • @chandrajyothibojjapu9566

    Thank you so much sir

  • @abdul-majidkombo5275
    @abdul-majidkombo5275 Před 2 lety

    Thanks for that

  • @faiyazmahmud5580
    @faiyazmahmud5580 Před 3 lety

    THANK YOU

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

    Thank u sir 👍👍👍

  • @Satyam_10
    @Satyam_10 Před 4 lety +1

    Nice Lecture sir

  • @senthilkumar4446
    @senthilkumar4446 Před 3 lety

    Great sir thanks

  • @ececse
    @ececse Před rokem

    thankyou sir

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

    Sir , Ur teching style is awesome 😊 Love from India 🇮🇳

  • @ertugrullovers9167
    @ertugrullovers9167 Před 3 lety

    Amazing ❤️❤️❤️

  • @icsprojects8745
    @icsprojects8745 Před 4 lety +1

    good video

  • @sheerin_jjk1322
    @sheerin_jjk1322 Před 2 lety

    Thankyou sir

  • @aakashsingh8158
    @aakashsingh8158 Před 6 lety +1

    Facts is very important

  • @shauryasaxena5263
    @shauryasaxena5263 Před 3 lety

    Excellent method sir thanks a lot sir 👍🙏😊

  • @ishasingh6726
    @ishasingh6726 Před 3 lety

    Thanku soo very much 🙌

  • @shyammohanazad9752
    @shyammohanazad9752 Před 3 lety

    hello sir, is it possible to define inline macros as we do in case of variables. ?

  • @shiyamparthiban3485
    @shiyamparthiban3485 Před 4 lety +11

    hi, can i use relational operators or some other category of operator in switch case
    Eg;
    int x=5;
    switch(x)
    { case x>2 : printf("the number is %d",x);
    case 1: printf("the condition not satisfied ")
    }

    • @lynnemakuate6431
      @lynnemakuate6431 Před 4 lety +2

      hi .. i think it can't be possible because variable are not allowed in case labels. that is my opinion

    • @java_shaileshkushwaha878
      @java_shaileshkushwaha878 Před 4 lety +1

      Instead of x write constant is allowed but variable not allow in case level

  • @deepeshsreecharanm7502

    Sir, Can we use relation operations such as ,= in case (in between constants or delcared variables)

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

    Love from Bangladesh 🥰🥰

  • @asadquraishee3172
    @asadquraishee3172 Před rokem

    A very nice way thanks alot
    How can i take notes

  • @katm752
    @katm752 Před 2 lety

    thank you
    Ihave a very urgent question can we put a switch inside another switch ?
    for example :
    switch (x)
    {case 1:{instuctions; break;}
    case 2:{instuctions; break;}
    case 3:{switch(y)
    {case 4: {instuctions; break;}
    case5: {instuctions; break;} ; break;} }

  • @true4189
    @true4189 Před 3 lety

    Thank u

  • @hareeshdwivedi7396
    @hareeshdwivedi7396 Před 4 lety

    Earlier you had told us that while finding the value of expression first we have to do expansion then operation. But in this case you are not doing that. May I know the reason for it

  • @sriharibayya2932
    @sriharibayya2932 Před 3 lety

    SUPER !!!

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

    Majja aaya sir.

  • @vaibhavpal1655
    @vaibhavpal1655 Před 2 lety

    Radhe Radhe Sir Ji 🙏🙏🙏

  • @anokhautomation4453
    @anokhautomation4453 Před 3 lety

    We can use character like arithmetical operators??

  • @ajaysonerecs-1962
    @ajaysonerecs-1962 Před 3 lety

    It's ped course. Thank u sir

  • @prabhjotarora2740
    @prabhjotarora2740 Před 3 lety

    Please tell me ..... What could be the coding if I want to print the week days....from Monday to Sunday using switch statement...🙏

  • @osiris1071
    @osiris1071 Před 3 lety

    greetings from Turkey

  • @GOKULSREER
    @GOKULSREER Před rokem

    super

  • @realDevStuff
    @realDevStuff Před 2 lety

    IS there a pdf of the slides you were showing?

  • @souvikroy01
    @souvikroy01 Před 3 lety

    Hello sir, your lectures are really helpful.
    Thanks a lot.

  • @md.tanjilurrahman5949
    @md.tanjilurrahman5949 Před 3 lety +1

    I need help. How to turn the following code into switch statement
    int a = 5, b = 10, c = 15, choice;
    choice = a > b && a>c ? a: (b > c ? b: c);
    printf(“%d”, choice);