The bit shift operators in C

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

КОМЕНТАРІ • 25

  • @jacoposchwitter5151
    @jacoposchwitter5151 Рік тому +4

    Better than my Uni's lecture

  • @hamzasiddiqui6645
    @hamzasiddiqui6645 4 роки тому +2

    The best videos on C programming on youtube

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

    Excellent video. Very clearly explained. Thank you for sharing.

  • @alleksandrs
    @alleksandrs 4 роки тому +7

    Thanks for the video! Small correction for 4:18: twenty in binary, not hexadecimal.

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

    thank you mate clear explanation

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

    Legend! Thankyou

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

    Very good video, thx!

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

    very helpful, thank you!

  • @Zahra-qb7nm
    @Zahra-qb7nm 4 роки тому

    THANK YOU!

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

    Thank you so much. Can you tell me, in which situations should we use shifting? For example, multiplication, concatenation of bytes etc.

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

      Usually when multiplying/dividing a number with a power of 2 or when you have to check specific bit values in a byte

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

      @@CodeVault Thank you so much.

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

    How would someone make a decimal shifter?

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

      I'm guessing with the modulo operator by 10 and some division/multiplication. It shouldn't be too difficult

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

    very helpful and clear

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

    Thank you very much for your video, very informative! Only one question: if you declared unsigned int, why it becomes negative?

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

      Oh, I got it, the peace of video, where you change unsigned int to int is missing

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

    Can shift count be negative?

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

      You can, but you do get a warning
      2

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

      @@CodeVault ill have to look into that warning; I could use that signed count (efficiency)

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

    @codevault
    Sorry, guy, I don't know your name
    I am looking to know if you have made vides on the 1's and/or 2's complement(s)?
    I really do appreciate your 'deepness' on the videos you do. Most of the ones I have seen on programming don't do this
    And you're using actual programming on the screen 'live'.
    And I would say to you that if you think doing the same videos over time with another example or the same example extended, then do that that. :)

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

      Thanks. No, I haven't yet, but it is on my TODO list! Thanks for the recommendation!

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

      @@CodeVault You're welcome and thanks for the reply
      I'm waiting to see your new vids too

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

    very helpful! thank you!