C_31 Switch Statement In C | C Programming Tutorials

Поділитися
Вставка
  • Опубліковано 11 січ 2021
  • In this video, I have discussed the Switch Case in C with a flowchart and program.
    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 #switchcase

КОМЕНТАРІ • 389

  • @Rakshith_._247
    @Rakshith_._247 3 роки тому +94

    This ma'am is the best. She does so much for us. Love to her and her family and the little one.

  • @oppositelyharish947
    @oppositelyharish947 2 роки тому +66

    How many members are skipping unacademy add

  • @nitish2001nb
    @nitish2001nb 3 роки тому +49

    i know it's very difficult to make videos daily along with family and explain topics in detail
    thank you mam for making these videos
    i mean all of them that u made
    🙏🙏🙏🙏 🙇🙇🙇🙇
    i didn't go to a good college
    but i found a teacher like you now i can learn all the concepts from your UA-cam channel🙏🙏

  • @gopalchaudhary6170
    @gopalchaudhary6170 2 роки тому +11

    One of the best series of programming in C language ❤️❤️❤️❤️

  • @sbepari79
    @sbepari79 3 роки тому +105

    Once this is finished can help us to create a live project using c++/c language it will help us for better understanding 🙏🏻

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

    Mam you have been helping me too much with your videos.
    The way you explain is very easy to understand i have only to say thank and ask you please don't stop making video such that, you may not know but your videos are very useful for us.
    by the way i am from Mozambique

  • @Rishithabajjuri
    @Rishithabajjuri 2 роки тому +9

    Excellent teaching skills u have mam that is understanding by everyone ❤️😍😍😍

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

    maam please keep making videos and guiding us u are my only hope because only your lectures are understandable by me

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

    Tq, u r giving complete crystal clear information.. 🙏

  • @Mr.Yaragonda
    @Mr.Yaragonda 3 роки тому +6

    I love❤ this Sessions....... Thank you❤🌹 so much madam from bottom of my heart💖....... You are the only one in UA-cam▶️i always waiting⏳ for ur videos madam......... Ur hardworking never wastes😇....... My education🎓 is dedicated always for you mam🙃🥰

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

    Really your all lecture are superb nd it helps more nd more to learn any concept in depth 👍👍so we thanks to you for making free content like this ❤️
    But only one think is you miss that iss captions

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

    Thank you so much mam...I understood it very clearly...🙏👍👍😇

  • @fansbilever9676
    @fansbilever9676 3 роки тому +7

    Thank you mam ..
    You are a god gift to me...
    For cs tq mam

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

    Ur explaining way Is just amazing. it helped me a lot in my studies

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

    U re really an extraordinary teacher ....🥰😍

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

    Mam I am fresher and I can understand teaching of only you but not of my college Teachers so thank you so much mam 💓

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

    Thanks a lot for your help 🔥👍

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

    I am learning so much from my beautiful teacher! Great video Ma!

  • @Nithya.899
    @Nithya.899 9 місяців тому +2

    We need to be very thankful to u mam ur lectures helped us a lot by gaining lots of knowledge on c language 🎉

  • @DailyComedi
    @DailyComedi 10 місяців тому +1

    I love you, ma'am, your teaching style is wonderful.

  • @Ms_zeezah
    @Ms_zeezah 9 місяців тому +1

    wow, i really love this particular session Thanks for the impact ma, you even explained much better than my lecturer, this will really help me in my forthcoming exam

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

    Thank you very much ma'am for making this video. It helped me lot in my exam.❤❤

  • @subhadeepbose4610
    @subhadeepbose4610 4 місяці тому +1

    I watch your lectures and I try the programs by myself and I really get happy when I pass. I understand your lectures so well.

  • @Sourabh2208
    @Sourabh2208 Рік тому +46

    #include
    main()
    {
    int marks;
    printf("Enter marks ");
    scanf("%d",&marks);
    switch (marks/10)
    {
    case 10:
    case 9:
    case 8:
    printf("Grade A");
    break;

    case 7:
    printf("Grade B");
    break;

    case 6:
    printf("Grade C");
    break;

    default: printf("Grade D");
    }
    }

    • @p.pardhu_akhil
      @p.pardhu_akhil 3 місяці тому +4

      That's wrong program, when you try to enter the marks. 9 the output is coming great d.
      here is the correct program;---
      #include
      int main()
      {
      int a;
      printf("Enter a value:");
      scanf("%d",&a);
      switch (a)
      {
      case 10:
      case 9:
      case 8:
      printf("Grade A");
      break;
      case 7:
      printf("Grade B");
      break;
      case 6:
      printf("Grade C");
      break;
      default: printf("Grade D");
      }
      return 0;
      }
      mam pls check and tell... tq..

    • @venugopalala
      @venugopalala 2 місяці тому +2

      Both are correct
      1 st code marks for 100 i.e;user would have to enter marks for 100
      2nd code marks for 10
      i.e; user would have to enter marks for 10

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

    really such a great teacher god bless you🥰🥰

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

    Thanks a lot ma'm ap ny c start kar di
    Really bundles of thanks.
    Ap ny dda start ki thi to mujhy lga c language skip kar di ap ny ab nhi parhaen gi
    Again Thanks

  • @shivamrajput2157
    @shivamrajput2157 3 роки тому +25

    Ma'am please finish this course as fast as possible I have a exam in next month

    • @Mr.Yaragonda
      @Mr.Yaragonda 3 роки тому +6

      Same mam..... Please complete ....

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

      code with harry sa kar la bro

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

    Thank you so much mam 🔥🔥🔥

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

    Perfect Explaination

  • @atilla6013
    @atilla6013 2 роки тому +141

    #include
    int main()
    {
    int marks;
    printf("Enter the marks out of 100 ");
    scanf("%d",&marks);
    switch(marks/10)
    {
    case 10:
    case 9:
    case 8:
    printf("your grade is A");
    break;
    case 7:
    printf("Your grade is B");
    break;
    case 6:
    printf("Your grade is c");
    break;

    default: printf("your grade is d");
    }
    return 0;
    }

    • @Shreyas_K1044
      @Shreyas_K1044 Рік тому +3

      marks/100 should be their in the place of expression

    • @pegasusboss5672
      @pegasusboss5672 Рік тому +6

      @@Shreyas_K1044 then it will show only default ...

    • @leelasaikrish1966
      @leelasaikrish1966 Рік тому +6

      Bro in case of 80 marks it have to print 'B' grade but according to your program it is printing 'A' grade

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

      @@leelasaikrish1966 IT DOESNT MATTER ,,, LOGIC MATTERS ,,,, AND LOGIC IS TRUE...@attila6013

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

      👍👍 true and logical
      it works

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

    Good explanation of Switch statement

  • @aryanshivamiitmentors
    @aryanshivamiitmentors 5 місяців тому

    YOUR TEACHIN STYLE IS WONDERFULL MA'M

  • @Adityakumar-dl4vc
    @Adityakumar-dl4vc 11 місяців тому

    Now I understand switch case thanks a lot mam

  • @HamzaKhan-ei9op
    @HamzaKhan-ei9op 10 місяців тому +1

    A thankful video 🥰😘

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

    Thank you so much❤ mam🤗

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

    jenny you are very much great

  • @gurupranith9167
    @gurupranith9167 5 місяців тому +1

    Thank u so much mam I understood clearly 🙏🙏

  • @Cute-892
    @Cute-892 11 днів тому +1

    Very Well Explained Lectures
    Thank Uh Mam❤

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

    You are really superb mam

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

    So nice explanation.

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

    Love you Jenny😍😍😍

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

    Mam in the program two it's just about vowel and consonant but if we enter any special character it will print as a consonant so how should we include in the switch statement...please explain mam

  • @user-zs8rt8qo5n
    @user-zs8rt8qo5n 8 місяців тому

    Your teaching is so good

  • @uttej8257
    @uttej8257 3 роки тому +21

    Mam start c++ as next course 🙏🙏🙏🙏🙏🙏🙏

  • @RashidKhan-wj7cp
    @RashidKhan-wj7cp 3 роки тому +2

    Is including default case is mandatory ?

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

    I like your way of teaching maam thank u for spreading knowledge.

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

    Mam ek dam accha se samaj aa gya switch in c

  • @balkrishnabane1392
    @balkrishnabane1392 2 роки тому +65

    23:40
    #include
    #include
    int main()
    {
    int marks;
    printf("Enter your marks: ");
    scanf("%d", &marks);
    switch(marks){
    case 80 ... 100:
    printf("Grade A
    ", marks);
    break;
    case 70 ... 79:
    printf("Grade B
    ", marks);
    break;
    case 60 ... 69:
    printf("Grade C
    ", marks);
    break;
    case 35 ... 59:
    printf("Grade D
    ", marks);
    break;
    default:
    printf("You are failed
    ");
    }
    printf("Statement X
    ");
    return 0;
    }

    • @madhavan.1209
      @madhavan.1209 Рік тому +2

      super vroo 👏👏👏

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

      👍

    • @bhukyabhanuprasad
      @bhukyabhanuprasad Рік тому +7

      Why did you used the 3 dots in between 70 and 79 ?

    • @devSackey
      @devSackey Рік тому +26

      @@bhukyabhanuprasad The "..." is called the range operator in C and is used to specify a continuous range of values. In this particular case, "case 80 ... 100" indicates that the code block following it will be executed if the expression being evaluated falls within the range from 80 to 100 (inclusive).

    • @cruelgaming8538
      @cruelgaming8538 Рік тому +3

      @@devSackey thanks isaac

  • @vigashiniammu1637
    @vigashiniammu1637 3 роки тому +20

    After this c programming, kindly post videos on python programming also mam. As I understand clearly if you teach❤️❤️

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

    Awesome mam

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

    Thankyou mam ❤️

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

    Thanks ❤️mam

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

    Watched and Understood ❤

  • @14thviking34
    @14thviking34 2 роки тому

    The teaching in the video is wonderful and mam you are looking beautiful

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

    Mam can we use for loop for case values

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

    madam since we can only check equality , how can we do that task using switch?

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

    Love u so much mam 💞 ( only in subject aspect )

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

    super video mam

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

    Mam in switch case why float values are not taking

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

    Mam only single charactor use in this statement?
    String charactor is not allowed?

  • @parthshroff7357
    @parthshroff7357 10 місяців тому +1

    22:09
    code ↓
    #include
    int main(){
    int marks;
    printf("please enter your marks
    ");
    scanf("%d",&marks);
    switch(marks/10){
    case 10:
    case 9:
    case 8: printf("you have got a A grade");
    break;
    case 7:printf("you have got a B grade");
    break;
    case 6:printf("you have got a C grade");
    break;
    default:printf("you have got a D grade");
    }
    return 0;
    }

  • @JyotiParida-sh7wu
    @JyotiParida-sh7wu 6 місяців тому

    Thank you

  • @SHREYASH1220
    @SHREYASH1220 9 місяців тому +2

    If you are our cs teacher I come even sunday to class.

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

    Please mam, when u start tuple calculus in DBMS,,,,,, please reply mam,,,🙏🙏🙏🙏

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

    i learnt till arrays, im waiting for you to reach till there

  • @RashidKhan-wj7cp
    @RashidKhan-wj7cp 3 роки тому +5

    What if we take case 1 and then again case 1 and putting two different statement in both cases, will both the cases run at input value 1 ?

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

      In first case 1 if you don't write break;
      Then it will check and execute next case i.e. next case 1.
      Until and unless the control finds the break keyword, it will execute all the cases.
      The moment control finds the break keyword, it will come out of the switch block statements and statement x would be executed(which is not part of the switch block statements but the part of the program.)

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

    thank you mam

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

    Does c takes default initialisation for variable?

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

    Thnku ma'am literally thnx!!

  • @akash2626.-
    @akash2626.- Рік тому

    you are amazing maam

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

    Thnx mam

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

    ma'am why will the other cases be executed if the value that we're getting from the expression isn't the same as that of the case value?

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

      Firstly, the case which matches with the value we have entered will be executed. And if we doesn't specify break after the case, then all other cases would also be executed till it finds break keyword.

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

    what would happen if we enter both same cases but printing values are different...then which case statement would it print?

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

      The same cases will give you an error

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

    Will u please make a video on C++ programming also

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

    Waiting for more videos specially array

  • @RanjanSingh-pm6ze
    @RanjanSingh-pm6ze 3 роки тому

    Can we write more than one statement under any case like case1: and within this multiple statements.

  • @KumaEdecha
    @KumaEdecha 2 місяці тому

    thank you very much mam you're smart c++ next please

  • @SaurabhSingh-jx9xr
    @SaurabhSingh-jx9xr Рік тому

    Thankyou mam

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

    You're an amazing teacher ma'am.your method of teaching helps to understand the topic very well.stay blessed always 🙏😊

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

    super teacher

  • @user-ch4nx2eh8s
    @user-ch4nx2eh8s 11 місяців тому +1

    int main()
    {
    int marks;
    coutmarks;
    switch (marks)
    {
    case 81:
    case 82:
    case 83:
    case 84:
    case 85:
    case 86:
    case 87:
    case 88:
    case 89:
    case 90:
    cout

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

    Ma'am please make video on recurrence relation in DAA

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

    Mam switch(a=1) expression is wright or wrong

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

    Mam can you help to count vowels in any sentence with the help of switch case please ??

  • @1shAggarwal
    @1shAggarwal 2 роки тому

    Mam , after compiling, it's not entering a, e, i, o, u or anything. Enter ch is showing. And it's entering only numbers when i am typing. What problem i am facing in you program could you tell me please????

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

    What to do if i want to run program like I/P -> Monday ..... Friday O/P -> Working day & I/P -> Saturday, sunday. O/P -> Holiday . PLEASE HELP ❤️

  • @sruthibobby3185
    @sruthibobby3185 8 місяців тому +1

    Mam ..then what will be the statement x ??

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

    What will happen if I give continue instead break

  • @chiara-md9cn
    @chiara-md9cn 2 роки тому +6

    Mam how to print when condition is >=360-firstclass
    >=250-secondclass
    Other wise third class mam
    Pls just give me a hint mam..

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

    Your teaching method is very nice mam so many video posted to the python java and c++ programs thank you mam🙏👌👌🥰

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

    Keep it up

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

    Mam you have said that float value cant be in switch statement but in grade problem we have to use (score/10) how can it happen

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

      If the mark is 96 by dividing by 10 it give 9.6. Here it takes only integer part 9 and the result gets printed

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

    madam excelent ur lectures and u r also so beautiful....tq madam.

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

    Switch case statement and switch statement both are same or not

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

    Here is my program. It satisfies all the cases.
    int marks;
    printf("enter marks:");
    scanf("%d",&marks);
    if (marks % 10 == 0) // If marks multiple of 10, then remove 1 from the marks. If you need to print the marks, use another variable to keep track of the real marks.
    marks = marks - 1;
    switch (marks/10)
    {
    case 10:
    case 9:
    case 8:
    printf("grade A");
    break;
    case 7:
    printf("grade B");
    break;
    case 6:
    printf("grade C");
    break;
    default:
    printf("grade D");
    }

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

    If we enter caps is that an vowel

  • @user-wh6ew5ol2s
    @user-wh6ew5ol2s Рік тому

    how can we write the last example in switch case mam please explain

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

    Mam..even AEIOU are also considering as vowels..then y didn't u take them as vowels..pls clear my doubt madam

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

    Mam please give notes for entire c programming pdf please mam💚🙏

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

    tq mam