Bitwise Operators in C (Part 1)

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

КОМЕНТАРІ • 210

  • @nasibmohamed4295
    @nasibmohamed4295 6 років тому +56

    i dont usually do youtube comments but I missed class for a week and this is one of the subjects we went through. I scoured the internet to find all this confusing, mumbo jumbo, nothing that quite broke it down to an understandable level. Your video did just that. THANK YOU!!

  • @ProjectKneepads
    @ProjectKneepads 3 роки тому +62

    Result of ~7 is -8. Remember we're dealing with signed numbers here, and where computers represent negative numbers in 2's complement, that means that the sign bit is also flipped. (So if you do a = 7 and b = ~a +1, then b is -7. Cool thing about 2's complement is that you can do it again: a = ~b + 1 and the value of a will still be 7.)

    • @ShubhamKumar-sj6dp
      @ShubhamKumar-sj6dp 3 роки тому +1

      Absolutely that is why I prefer standard text such as KnR C which cover these small details briefly but elegantly

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

      U r right .he explained nice but in wrong way

    • @routinewithspecial...8589
      @routinewithspecial...8589 10 місяців тому

      bro can u please elaborate the explanation please

  • @sundaystories.1078
    @sundaystories.1078 4 роки тому +64

    I am a diploma in civil engineering student, who got slided into cse. I just wanted to learn C language and searched for many playlists in UA-cam and at last found NESO ACADEMY.. You guys are the best.. I've also installed the app and using it... Thankyou so much 🙏🏻

    • @nesoacademy
      @nesoacademy  4 роки тому +12

      Glad to know this :)

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

      Same here I also did diploma in ce and enrolled in cse BTech

  • @genericyoutubechannel2601
    @genericyoutubechannel2601 2 роки тому +20

    I sincerely appreciate that you stated at the beginning that these topics are very difficult. I found this easier than I had anticipated, no doubt owing to your skills at explaining things, but if I had struggled with it I would have felt "allowed" to struggle. Other UA-cam educators try to reassure their viewers at the beginning by insisting how "simple" the complicated topics really are, even if they seem intimidating. I understand the good intention behind that approach, but when I watch such videos and then find myself struggling, which is discouraging by itself, I am also doubly discouraged by being unable to quickly grasp what I've just been told should be a very "simple" concept or idea. So, being told up-front that something is difficult but we'll all do our best genuinely helps me persist if I end up getting stuck. Thank you!

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

    Man, my first intro to Bitwise Operators and I feel like I'm learning ABC. Thank you! thank you for explaining things so well!

  • @cameronrowe2032
    @cameronrowe2032 4 роки тому +66

    Much better introduction to bitwise than my college instructor. Thanks!

  • @omi5137
    @omi5137 6 років тому +15

    You, sir, are a life savior.

  • @kushalavardhan
    @kushalavardhan 4 роки тому +32

    Want to see the man behind this great work

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

      You can see his Instagram id. It's mentioned in description box.

  • @janhvinarayan1633
    @janhvinarayan1633 11 місяців тому +1

    great explanation, I was confused that how does bitwise and work, I'm a 1st yr btech student of cse and my teacher explains nothing so ppl like u are lifesavers, thank u so much

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

    Finally cleared the difference between logical and bitwise operators in 7 minutes!

  • @Official-tk3nc
    @Official-tk3nc 5 років тому +28

    One of my friends scored top marks in exam. Today I realised he is the student of NESO Academy.

  • @Official-tk3nc
    @Official-tk3nc 5 років тому +11

    You are teaching better than my professor Who has Ph.D from IIT . Love you sir really helpful. I want to know who is the CEO of NESO?

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

    This is the best explainer ive ever watched.. ever. Great quality!

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

    explainig the whole concept in just a little bit of time is amazing

  • @bawol-official
    @bawol-official 2 роки тому +3

    This was giving me so much trouble to wrap my head around!!! Thank you for this!!!

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

    Sir u r God.... Sir...... Explaination goes peaks... In c language........ Tq soo much sir..... Love ❤ neso academy.....

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

    The way you explained each concept is awesome 👌🏾👌🏾
    Thanku for this amazing videos

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

    That example made it crystal clear.🙏

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

    Really easy to understand with clear examples ❤️

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

    The indian youtuber coming in clutch

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

    An excellent and simple video of bitwise operations in C. Keep up the good work!

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

    Great explanation! This topic has always been quite confusing to me but you've cleared it up.

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

    Very clear and concise explanation, thanks.

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

    The bottom left scared me into thinking I had dead pixels in my monitor. Also, excellent explanations! Thanks

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

    The whole series is very well explained

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

    This was easily understood, thanks for the detailed explanation.

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

    I think it's useful to think of the & (AND) and | (OR) linguistically. If I'm understanding how this works correctly, it goes something like: "If one bit AND the other are true (1), then the result is true (1). Otherwise, the result is false (0)." And likewise: "If either one bit OR the other is true (1), then the result is true (1). Otherwise, the result is false (0)."

  • @USER-zf3tr
    @USER-zf3tr 4 роки тому +1

    a clear level of explanation....
    thank u..

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

    This is my 1st comment for a youtube channel..
    The way of explanation and presentation etc etc everything was very excellent. Great job...thank u soooo much for your videos..
    This is very much helpful especially in this pandemic situation.
    Kindly upload videos for DESIGN AND ANALYSIS OF ALGORITHM subject also.

  • @vaibhavkapadia1
    @vaibhavkapadia1 4 роки тому +35

    sir i think ~7 must be -8 not 8 bcs you used %d in printf i.e integer data type which uses 2's complement representation

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

    Very well explained. Thank you.

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

    Nice video buddy,
    Loved it

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

    Very well explained! Keep it up...!

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

    Thank you indian youtube man. I don't know who you are or why you know literally everything there is to know, but thanks yet again for saving me.

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

    this is the best explanation of bitwise function

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

    Thank you sir very nice gide & very nice best information bitwise operator teaching video.👍

  • @טלחודורקובסקי
    @טלחודורקובסקי 6 років тому +2

    thank a lot you help me finish my home work!

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

    this method you are using to explain make eveything so easy to be undrestood

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

    It would be nice to see examples of how these are useful rather than explain them in the abstract. Thank you for making the video.

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

    Wow this is SO clear.

  • @Santhosh-qp1hq
    @Santhosh-qp1hq 2 роки тому

    You are really Amazing..... Such a detailed explanation I found no where

  • @AhmedSayed-ki3fm
    @AhmedSayed-ki3fm Рік тому

    Thank you, your way of delivering the information is simple and easy to be understood.

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

    best tutorial ever about this topic!

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

    Thank you for this great video!

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

    Thank you so much for this tutorial. I've been looking for an detailed and understandable explanation on this for hours.

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

    I love you NESCO ACADEMY

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

    it was easy to understand, an awesome video.

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

    Excellent video, one of the best C tutorials I’ve seen so far

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

    Thank you so much. This lecture was very helpful.

  • @Chi.chi.j
    @Chi.chi.j Рік тому

    Thank you very much Neso Academy!

  • @jedisolas8917
    @jedisolas8917 8 місяців тому

    Your explaination is spot on, me having trouble understading yet took me 5 mins to understand from u

  • @sergioropo3019
    @sergioropo3019 6 років тому +2

    Very well done Sir.

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

    POG 💪🏻

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

    🙏Thank you sir for giving this knowledge. 🙏

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

    Awesome Explanation Sir

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

    man, perfect explanation.

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

    Excellent work sir I have my exam day after tomorrow and this video helped me a lot sir...tqsm

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

    Thanks alot..❤😊💕👨‍🎓

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

    Thanks a lot for such high quality educational content!

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

    Thkz

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

    Simply amazing !

  • @gamingwithat.brothers2055
    @gamingwithat.brothers2055 Місяць тому

    Thanks sir its clean and clear

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

    Thnku so much dude 😇

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

    Comments for myself: Bitwise operators compares each bit of a value at a time and returns a final value from the formed bits sequence from the operations. e.g. if sequence is 0000 0000 (for char), then it returns 0.

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

    Thank you sir it was a nice explanation

  • @jess.uraura
    @jess.uraura 4 роки тому +1

    Very clear. Thank you so much!

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

    I Liked that NESO TV has an integrated cam as well.......

  • @GautamGskiTec
    @GautamGskiTec 3 місяці тому

    today's best video for me.

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

    you are my master, master.

  • @deepika-hj7vu
    @deepika-hj7vu 2 роки тому

    Great explanation. Thank you!

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

    I can bet you won't miss a single thing if you are following neso from the very beginning.

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

    Thanks again, you seem to have my entire college course made in youtube lol.

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

    Keep it up . Nice explanation

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

    great video! Very helpful!

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

    this was extremely clear thank you!

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

    AND(&) 1:16
    OR(|) 2:55
    NOT(~) 3:43

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

    Simply super sir

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

    People have asked what the practical use of bt manipulation is. It is used in low-level applications like Hardware Registers, and in compression algos as well as optimization.
    You can also use bit manipulation to perform common tasks like finding if a number is even or odd.
    Finding an odd occurance of a number in an array using using Hash Tables takes O(n) time. Bit manipulation on this same task takes O(1). So often times the fastest approach is Bit Manipulation.

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

    Great explanation

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

    Detailed explaination.....

  • @HanifudinFirmansah
    @HanifudinFirmansah 4 місяці тому

    Thank you so much. I want to download this

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

    Works for Java as well thanks !!!!

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

    Thank you

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

    Wow sir brilliant

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

    Amazing!

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

    Well explained!

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

    Nice class sir

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

    Great explained very good

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

    Thank you!!!

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

    Thnaks bro

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

    Thanks for help.

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

    Very good explanation sir.

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

    great lecture

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

    Sir, what happen if we take 7 , 8 instead of 7,4 in bitwise and operation, the output is 0 or not

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

    Thank you so much sir

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

    bro neso tv availabe on amazon or platform? byw nice teaching skill u have.

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

    Super sir

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

    the voice is soo sweeet :-)

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

    sir plz upload more videos in c ...

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

    Nice❤️