Bitwise Operators in C (Part 1)
HTML-код
- Опубликовано: 9 сен 2024
- C Programming & Data Structures: Bitwise Operators in C (Part 1)
Topics discussed:
1. Introduction to Bitwise Operators.
2. Types of Bitwise Operators.
3. Bitwise AND Operator.
4. Bitwise OR Operator.
5. Bitwise NOT Operator.
6. Difference between bitwise and logical operators.
C Programming Lectures: goo.gl/7Eh2SS
Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
Contribute: www.nesoacademy...
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy...
Website ► www.nesoacademy...
Forum ► forum.nesoacade...
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#CProgrammingByNeso #CProgramming #BitwiseOperators
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 RUclips and at last found NESO ACADEMY.. You guys are the best.. I've also installed the app and using it... Thankyou so much 🙏🏻
Glad to know this :)
Same here I also did diploma in ce and enrolled in cse BTech
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.)
Absolutely that is why I prefer standard text such as KnR C which cover these small details briefly but elegantly
U r right .he explained nice but in wrong way
bro can u please elaborate the explanation please
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!!
Bro what did mumbo jumbo do 😭
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 RUclips 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!
Man, my first intro to Bitwise Operators and I feel like I'm learning ABC. Thank you! thank you for explaining things so well!
Much better introduction to bitwise than my college instructor. Thanks!
Right😂
Same here
You, sir, are a life savior.
Want to see the man behind this great work
You can see his Instagram id. It's mentioned in description box.
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
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?
Finally cleared the difference between logical and bitwise operators in 7 minutes!
explainig the whole concept in just a little bit of time is amazing
One of my friends scored top marks in exam. Today I realised he is the student of NESO Academy.
This is the best explainer ive ever watched.. ever. Great quality!
This was giving me so much trouble to wrap my head around!!! Thank you for this!!!
The bottom left scared me into thinking I had dead pixels in my monitor. Also, excellent explanations! Thanks
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😂😂😂
That example made it crystal clear.🙏
Very clear and concise explanation, thanks.
Great explanation! This topic has always been quite confusing to me but you've cleared it up.
Really easy to understand with clear examples ❤️
The indian youtuber coming in clutch
The way you explained each concept is awesome 👌🏾👌🏾
Thanku for this amazing videos
The whole series is very well explained
This was easily understood, thanks for the detailed explanation.
Sir u r God.... Sir...... Explaination goes peaks... In c language........ Tq soo much sir..... Love ❤ neso academy.....
Thank you sir very nice gide & very nice best information bitwise operator teaching video.👍
Your explaination is spot on, me having trouble understading yet took me 5 mins to understand from u
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.
a clear level of explanation....
thank u..
An excellent and simple video of bitwise operations in C. Keep up the good work!
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.
this method you are using to explain make eveything so easy to be undrestood
this is the best explanation of bitwise function
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.
Very well explained. Thank you.
Thkz
today's best video for me.
great work! but i am confused!
can you explain how this internally works!
int a=-9,b;
b=~a;
printf("%d",b);
o/p:-8
please explain it will help!...
Hi -9 binary representation =>1000 1001 when u do ~ (operation) 2's complement 1111 0111(sign bit will not modify) ==>complement ==>0000 1000==>8. simple formula ==> ( -(n+1))
thank a lot you help me finish my home work!
Very well explained! Keep it up...!
Nice video buddy,
Loved it
it was easy to understand, an awesome video.
Wow this is SO clear.
Thank you sir it was a nice explanation
Thank you for this great video!
Thank you so much for this tutorial. I've been looking for an detailed and understandable explanation on this for hours.
man, perfect explanation.
Thank you, your way of delivering the information is simple and easy to be understood.
I Liked that NESO TV has an integrated cam as well.......
Thank you so much. I want to download this
I love you NESCO ACADEMY
Thanks!
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)."
You are really Amazing..... Such a detailed explanation I found no where
Thanks again, you seem to have my entire college course made in youtube lol.
best tutorial ever about this topic!
Very well done Sir.
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.
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.
Very clear. Thank you so much!
Excellent video, one of the best C tutorials I’ve seen so far
Thank you so much. This lecture was very helpful.
Thanks a lot for such high quality educational content!
Thank you very much Neso Academy!
Simply amazing !
POG 💪🏻
Thanks alot..❤😊💕👨🎓
Sir, what happen if we take 7 , 8 instead of 7,4 in bitwise and operation, the output is 0 or not
Thnku so much dude 😇
~ operator explanation is wrong if we have 6 (0110) it becomes -7 (0111) in IDE, but according to your explanation it should be 9 (1001)
I really love the way you teach. Greatful:)
you are my master, master.
Thnaks bro
🙏Thank you sir for giving this knowledge. 🙏
Detailed explaination.....
Thank you
Great explanation. Thank you!
Thank you so much
Excellent work sir I have my exam day after tomorrow and this video helped me a lot sir...tqsm
Awesome Explanation Sir
this was extremely clear thank you!
Thank u❤
Thanks
Great explanation
One issue is there in ~7= -8
Can you explain it🤔
Nice class sir
Works for Java as well thanks !!!!
Please explain with 8 bit machine, thanks
the voice is soo sweeet :-)
Simply super sir
AND(&) 1:16
OR(|) 2:55
NOT(~) 3:43
sir plz upload more videos in c ...
Thnq u
how can i understand that a&b=0 and a&&b=1 ???
they're doing different things
& is a bitwise operator, which works on the individual digits in a and b
&& is a logical operator which works on the truth/false values of a and b
Super sir
What is difference between bitwise AND operator and Logical AND operator..plz anyone reply me 🙏
Logical AND returns either true or false means 0 or 1. But bitwise AND please click the link
Very nice explanation sir
great video! Very helpful!
Thanks for help.