Switch statement

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 18

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

    Sir thank you very much for explaining the switch statement in C so nicely .
    Thank you sir 🙏🏼

  • @anubhavroy3028
    @anubhavroy3028 6 років тому +1

    Very helpful lectures.

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

    Thank you 👍

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

    In the fourth example ,
    X=a++_++a
    First a should be incremented so a is 11 and it should be subtracted from a so the x = -1
    And the a =11
    Why can't it be the solution of that problem ?
    Can anyone answer it?

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

      I too thought the same that x will be -1

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

      no, because whenever u first incremented the value it takes the same value as 11. this is because it is 'a' in both cases so 11-11 will equal 0. So it's confusing for the compiler to understand.

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

      the result will be x = -2.
      in the expression x = a++ - ++a;
      first a++ , a is incremented , a =11
      again ++a , a is incremented , a =12
      now , ++a is updated to 12 and a++ uses the present value which is 10 and increments later
      so , x = 10 - 12 => -2.

  • @_haptic_shorts
    @_haptic_shorts 4 роки тому +5

    What's the wrong with the Sound ??

  • @Bharat_ummadi
    @Bharat_ummadi 6 років тому +1

    7:42
    what's the answer for 3rd example?
    Can someone please help me out with that?

    • @shristisingh2417
      @shristisingh2417 5 років тому

      What's the problem?

    • @naveenkrishna620
      @naveenkrishna620 5 років тому +2

      initially b is pre-decremented(b=19 now) then assigned to value of a(a=10) and sumed up and assigned to x(x=29 now) then a is post-incremented(a=11 now) thus the values are a=11,b=19,x=29.

    • @royalbase4417
      @royalbase4417 5 років тому

      a=11 b=19 x=29

    • @AmanKUMAR-vq1ls
      @AmanKUMAR-vq1ls 4 роки тому

      @@naveenkrishna620 thank u so much

  • @زينب-ي6ش4و
    @زينب-ي6ش4و Рік тому

    Prefix

  • @samayster_3699
    @samayster_3699 5 років тому +1

    Sir neeche ka part hi nahi dhikta uske upar aap jo bolte hai voh lhika aa jata
    Sir plz fix it

    • @jacobarm5938
      @jacobarm5938 5 років тому +1

      Option me jao aur caption ko turned off kar do.

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

    very low sound