operators in c | bitwise - part-2|

Поділитися
Вставка
  • Опубліковано 18 жов 2024
  • bitwise operators like left shift, right shift with examples

КОМЕНТАРІ • 57

  • @SandeepKumar-cq5nk
    @SandeepKumar-cq5nk 5 років тому +7

    Excellent ! Your explanation is too good ma'am. It is so clear and easy to understand.

  • @tejaswinidandela4548
    @tejaswinidandela4548 4 роки тому +22

    ~10 is 5
    10= 1010
    ~10= 0101 i.e 5

    • @bharathgdpeace9369
      @bharathgdpeace9369 4 роки тому +1

      I ran this program and go this answer,
      #include
      #include
      void main()
      {
      int a=10,b=20,c=24,d=49;
      printf("%d
      ",~a);
      printf("%d
      ",~b);
      printf("%d
      ",~c);
      printf("%d",~d);
      }
      OUTPUT:
      -11
      -21
      -25
      -50

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

      perform 2s compliment for that answer then u will get the answer as what we solbed

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

      Yup

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

      But how bro??

  • @VarunKumar-ub5no
    @VarunKumar-ub5no 4 роки тому +5

    Hi... I have learnt a lot from your videos.. .
    In this video I have a doubt...
    In the last of the video you gave an example of program using left shift, right shift and one's compliment... In that program how the value of one's compliment of c=10 is 11 ?

  • @emmanuelkoduah7903
    @emmanuelkoduah7903 4 роки тому +1

    This video has really add up to my binary systems

  • @nag-music9253
    @nag-music9253 3 роки тому

    Mam please explain bitwise masking

  • @lokeshsamudrala4426
    @lokeshsamudrala4426 4 роки тому

    Clear to understand and very easy process

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

    Excellent mam ❤️👍

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

    In bitwise negation, c=10 then ~c =5
    But you wrote ~c=11 how??

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

    Mam apka complement ka output 11 kese aya please explain i am confused mera 5 arha

  • @chaithanyachai790
    @chaithanyachai790 4 роки тому

    Superb nd nice explanation mama🥰

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

    Answer is 5 at the end otherwise video was excellent.

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

    the answer for ones compliment , when we do by our self and as maam said it should become 5 but when we run it by machine it shows as 11,can any one clear it please.

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

    ~c answer is 5

  • @OKD_15
    @OKD_15 4 роки тому +4

    There is something wrong about one's complement...🤔

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

    In the last one's complement how ~c = 11 ones explain

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

    Video is too good but in the last the one's compliment is 5 .

  • @ganeshbabumr4339
    @ganeshbabumr4339 6 років тому +3

    The answer for the last one is 5 and not 11. Am I correct

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

    It really useful to me

  • @anavyasir3382
    @anavyasir3382 4 роки тому

    Mam in one's compliment in program ans of it should be 5 na but u rote as 11 how

  • @IqbalKhan-pq2jc
    @IqbalKhan-pq2jc 4 роки тому

    Nic teachings

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

    In this video I have one doubt ~c value will come "5"

  • @shivareddyanapana9936
    @shivareddyanapana9936 4 роки тому

    Thanks 😊 sis , 😍

  • @abhijitmenon5820
    @abhijitmenon5820 4 роки тому +1

    One's complement statement is wrong...
    Basically it means add 1 to the the number you have taken....
    For ex: ~12 = 12+1 = 13

  • @kothabharathkumar3589
    @kothabharathkumar3589 4 роки тому

    C value is 5 not 11 is it correct

  • @NavdeepSingh-ur8lz
    @NavdeepSingh-ur8lz 4 роки тому

    Miss, you are not returning a value. How the results are coming? Please work on that

  • @emmanuelkoduah7903
    @emmanuelkoduah7903 4 роки тому

    I enjoyed the video but the ~c= 5.Thanks

    • @bharathgdpeace9369
      @bharathgdpeace9369 4 роки тому

      #include
      #include
      void main()
      {
      int a=10,b=20,c=24,d=49;
      printf("%d
      ",~a);
      printf("%d
      ",~b);
      printf("%d
      ",~c);
      printf("%d",~d);
      }
      OUTPUT:
      -11
      -21
      -25
      -50

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

      @@bharathgdpeace9369 why negative sign

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

    Thank you

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

    In left Shift ,How does I0I0 (4) became I0I00 (5)
    It should be only 0I00 (4)

    • @bharathgdpeace9369
      @bharathgdpeace9369 4 роки тому

      Hi, Left shift means double the value,
      1010 is decimal 10,
      10100 is decimal 20,
      You can use online binary calculator for confirmation,TY:)

  • @darshanvs6446
    @darshanvs6446 4 роки тому +1

    In the last part of the video the sample programs result was wrong I think so I would be c= 5

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

    I=32;
    I =i>>3>>2 meaning

  • @Artistomaniacshorts
    @Artistomaniacshorts 4 роки тому

    ~c=5

  • @ajaybhargavborra1792
    @ajaybhargavborra1792 4 роки тому

    ~5 is -6

  • @sannidhanamtejaswini1174
    @sannidhanamtejaswini1174 4 роки тому

    How ~c has become 11 it's 5 no???

  • @bharathgdpeace9369
    @bharathgdpeace9369 4 роки тому

    5 is WRONG!!!!
    #include
    #include
    void main()
    {
    int a=10,b=20,c=24,d=49;
    printf("%d
    ",~a);
    printf("%d
    ",~b);
    printf("%d
    ",~c);
    printf("%d",~d);
    }
    OUTPUT:
    -11
    -21
    -25
    -50

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

    Once compliment answer is wrong input 10 is output is 5 not 11 answer

  • @Angela-Gee
    @Angela-Gee 3 роки тому

    When so many people are asking you doubts about the compliment, don't you think it is your duty to clear what error you've made in the video? Very disappointing!!!!