Bitwise Operators in C (Part 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 212

  • @nasibmohamed4295
    @nasibmohamed4295 6 ปีที่แล้ว +57

    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!!

  • @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 TH-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!

  • @sundaystories.1078
    @sundaystories.1078 4 ปีที่แล้ว +65

    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 TH-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 6 หลายเดือนก่อน

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

  • @ProjectKneepads
    @ProjectKneepads 3 ปีที่แล้ว +65

    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 ปีที่แล้ว +2

      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 11 หลายเดือนก่อน

      bro can u please elaborate the explanation please

  • @peaceemmanuel4485
    @peaceemmanuel4485 4 ปีที่แล้ว +23

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

  • @omi5137
    @omi5137 6 ปีที่แล้ว +15

    You, sir, are a life savior.

  • @janhvinarayan1633
    @janhvinarayan1633 ปีที่แล้ว +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

  • @cameronrowe2032
    @cameronrowe2032 4 ปีที่แล้ว +67

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

  • @ChristopherFranko
    @ChristopherFranko 3 ปีที่แล้ว +2

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

  • @kushalavardhan
    @kushalavardhan 4 ปีที่แล้ว +33

    Want to see the man behind this great work

    • @komaldeepsingh293
      @komaldeepsingh293 4 ปีที่แล้ว +3

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

  • @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?

  • @mauryaashish1865
    @mauryaashish1865 4 ปีที่แล้ว +3

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

  • @manoj686
    @manoj686 4 ปีที่แล้ว

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

  • @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.

  • @beyou7255
    @beyou7255 3 ปีที่แล้ว +2

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

  • @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.

  • @bawol-official
    @bawol-official 3 ปีที่แล้ว +3

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

  • @gamingwithat.brothers2055
    @gamingwithat.brothers2055 3 หลายเดือนก่อน +1

    Thanks sir its clean and clear

  • @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!

  • @OfficialVasuRastogi
    @OfficialVasuRastogi 4 ปีที่แล้ว +2

    That example made it crystal clear.🙏

  • @sabina9546
    @sabina9546 2 ปีที่แล้ว +1

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

  • @SunZheini
    @SunZheini 3 ปีที่แล้ว +3

    The whole series is very well explained

  • @pojntfxlegacy611
    @pojntfxlegacy611 4 ปีที่แล้ว +5

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

  • @shirleyachara3809
    @shirleyachara3809 4 ปีที่แล้ว +2

    Very clear and concise explanation, thanks.

  • @USER-zf3tr
    @USER-zf3tr 4 ปีที่แล้ว +1

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

  • @mdashiouzzaman834
    @mdashiouzzaman834 3 ปีที่แล้ว +2

    Really easy to understand with clear examples ❤️

  • @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)."

  • @muhammadadilkhalil9681
    @muhammadadilkhalil9681 5 ปีที่แล้ว +3

    Very well explained! Keep it up...!

  • @italebismail7338
    @italebismail7338 ปีที่แล้ว

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

  • @LorenHelgeson
    @LorenHelgeson 4 ปีที่แล้ว +2

    Very well explained. Thank you.

  • @noone0978
    @noone0978 ปีที่แล้ว

    this is the best explanation of bitwise function

  • @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.

  • @EtBukaneluu
    @EtBukaneluu 4 ปีที่แล้ว +2

    Nice video buddy,
    Loved it

  • @ashishtayade047
    @ashishtayade047 ปีที่แล้ว

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

  • @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.

  • @rayankharajpaul3198
    @rayankharajpaul3198 3 ปีที่แล้ว +1

    it was easy to understand, an awesome video.

  • @טלחודורקובסקי
    @טלחודורקובסקי 6 ปีที่แล้ว +2

    thank a lot you help me finish my home work!

  • @vaibhavkapadia1
    @vaibhavkapadia1 4 ปีที่แล้ว +36

    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

    • @lemmenmin7676
      @lemmenmin7676 3 ปีที่แล้ว +6

      Ах вот почему ракеты падают!

    • @NikhilKumar-ni9yc
      @NikhilKumar-ni9yc ปีที่แล้ว +1

      @@lemmenmin7676😂😂😂

    • @REVIEWSGALATTA
      @REVIEWSGALATTA 4 หลายเดือนก่อน

      Then how to represent 8 in binary form?

    • @srihari4135
      @srihari4135 4 หลายเดือนก่อน

      You are correct 💯

  • @ijeanpierrebp
    @ijeanpierrebp 2 ปีที่แล้ว

    best tutorial ever about this topic!

  • @irasenevirathne229
    @irasenevirathne229 ปีที่แล้ว

    Thanks alot..❤😊💕👨‍🎓

  • @giaotran3311
    @giaotran3311 5 ปีที่แล้ว +2

    Wow this is SO clear.

  • @milesisterrible
    @milesisterrible 2 ปีที่แล้ว

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

  • @AhmedSayed-ki3fm
    @AhmedSayed-ki3fm ปีที่แล้ว

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

  • @robelpop78
    @robelpop78 2 ปีที่แล้ว

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

  • @jedisolas8917
    @jedisolas8917 10 หลายเดือนก่อน

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

  • @Chi.chi.j
    @Chi.chi.j ปีที่แล้ว

    Thank you very much Neso Academy!

  • @isramedeiros
    @isramedeiros ปีที่แล้ว

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

  • @compangit1524
    @compangit1524 2 ปีที่แล้ว

    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.

  • @jonathanegwuatu1490
    @jonathanegwuatu1490 4 ปีที่แล้ว +1

    Thank you for this great video!

  • @facts587
    @facts587 4 ปีที่แล้ว +1

    Thank you sir it was a nice explanation

  • @MineCrafterCity
    @MineCrafterCity 2 ปีที่แล้ว

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

  • @himanshudeshmukh6540
    @himanshudeshmukh6540 3 ปีที่แล้ว

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

  • @shukranamattu426
    @shukranamattu426 3 ปีที่แล้ว +1

    Thnku so much dude 😇

  • @Santhosh-qp1hq
    @Santhosh-qp1hq 2 ปีที่แล้ว

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

  • @kirtikumarkadam7224
    @kirtikumarkadam7224 4 ปีที่แล้ว +1

    I love you NESCO ACADEMY

  • @MrSkyydude
    @MrSkyydude 2 ปีที่แล้ว

    Thank you so much. This lecture was very helpful.

  • @danilo2735
    @danilo2735 4 ปีที่แล้ว +2

    man, perfect explanation.

  • @vennjylugo7434
    @vennjylugo7434 2 ปีที่แล้ว

    you are my master, master.

  • @GautamGskiTec
    @GautamGskiTec 5 หลายเดือนก่อน

    today's best video for me.

  • @kartikkalani8439
    @kartikkalani8439 2 ปีที่แล้ว

    🙏Thank you sir for giving this knowledge. 🙏

  • @kapishjain9262
    @kapishjain9262 2 ปีที่แล้ว

    Awesome Explanation 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.

  • @sergioropo3019
    @sergioropo3019 6 ปีที่แล้ว +2

    Very well done Sir.

  • @jess.uraura
    @jess.uraura 4 ปีที่แล้ว +1

    Very clear. Thank you so much!

  • @deepika-hj7vu
    @deepika-hj7vu 2 ปีที่แล้ว

    Great explanation. Thank you!

  • @xeviivry3798
    @xeviivry3798 3 ปีที่แล้ว +1

    Thanks a lot for such high quality educational content!

  • @jyothisaleras6914
    @jyothisaleras6914 4 ปีที่แล้ว +2

    Simply amazing !

  • @shwethashwe3024
    @shwethashwe3024 5 ปีที่แล้ว +1

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

  • @HanifudinFirmansah
    @HanifudinFirmansah 6 หลายเดือนก่อน

    Thank you so much. I want to download this

  • @plutonium4574
    @plutonium4574 2 ปีที่แล้ว

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

  • @posivibez2094
    @posivibez2094 3 ปีที่แล้ว

    this was extremely clear thank you!

  • @avikdas9449
    @avikdas9449 4 ปีที่แล้ว

    Keep it up . Nice explanation

  • @allenthakur5757
    @allenthakur5757 4 ปีที่แล้ว +1

    Thkz

  • @smritipandey4856
    @smritipandey4856 4 ปีที่แล้ว +1

    Detailed explaination.....

  • @venumbakasannutha5923
    @venumbakasannutha5923 3 ปีที่แล้ว

    Simply super sir

  • @falkelh
    @falkelh 4 ปีที่แล้ว

    great video! Very helpful!

  • @avixx
    @avixx 2 ปีที่แล้ว

    Amazing!

  • @abhishekchauhan7910
    @abhishekchauhan7910 3 ปีที่แล้ว

    Wow sir brilliant

  • @hrutikbhalerao
    @hrutikbhalerao 5 ปีที่แล้ว

    Very good explanation sir.

  • @muhmammdhidytllh7312
    @muhmammdhidytllh7312 2 ปีที่แล้ว

    Works for Java as well thanks !!!!

  • @doangmawar8716
    @doangmawar8716 6 ปีที่แล้ว +1

    Great explanation

  • @aatmakumar4631
    @aatmakumar4631 2 ปีที่แล้ว

    Nice class sir

  • @atharvrastogi8970
    @atharvrastogi8970 ปีที่แล้ว +1

    POG 💪🏻

  • @muskaan4591
    @muskaan4591 5 ปีที่แล้ว +1

    Thank you

  • @arpitkullu8946
    @arpitkullu8946 3 ปีที่แล้ว

    Thanks for help.

  • @Meenereem
    @Meenereem 2 ปีที่แล้ว

    Thank you!!!

  • @nareshabhira8728
    @nareshabhira8728 ปีที่แล้ว

    Thnaks bro

  • @GUIHTD
    @GUIHTD 4 ปีที่แล้ว

    Well explained!

  • @chandrachurmukherjeejucse5816
    @chandrachurmukherjeejucse5816 3 ปีที่แล้ว

    great lecture

  • @kuldeepsharma7499
    @kuldeepsharma7499 5 ปีที่แล้ว

    Great explained very good

  • @sumitpardeshi719
    @sumitpardeshi719 3 ปีที่แล้ว +1

    One issue is there in ~7= -8
    Can you explain it🤔

  • @mney7486
    @mney7486 3 ปีที่แล้ว

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

  • @chandrajyothibojjapu9566
    @chandrajyothibojjapu9566 3 ปีที่แล้ว

    Thank you so much sir

  • @mariazoglmeyr3665
    @mariazoglmeyr3665 3 ปีที่แล้ว

    the voice is soo sweeet :-)

  • @samdavepollard
    @samdavepollard 4 ปีที่แล้ว

    "Result of x&y is 1" ??
    shouldn't that be "Result of x&y is 0" ?
    great series of videos by the way
    many thanks for sharing your knowledge

  • @mridulasthana8111
    @mridulasthana8111 ปีที่แล้ว

    Please explain with 8 bit machine, thanks

  • @sonusambharwal8828
    @sonusambharwal8828 5 ปีที่แล้ว +1

    Super sir

  • @sheetaltyagi391
    @sheetaltyagi391 2 ปีที่แล้ว

    Nice❤️