Bitwise Operators In C++
VloĹžit
- Äas pĹidĂĄn 13. 09. 2024
- JOIN ME
-----
CZcams đŹ / @cppnuts
Patreon đ / cppnuts
COMPLETE PLAYLIST
------------
C++ Tutorial For Beginners: ⢠Introduction To C++
STL (Standard Template Library): ⢠STL In C++
ThreadIng In C++: ⢠Multithreading In C++
Data Structures: ⢠Data Structure
Algorithms: ⢠Binary Search
Design Patterns: ⢠Factory Design Pattern...
Smart Pointers: ⢠Smart Pointer In C++
C++14: ⢠Digit Separator In C++
C++17: ⢠std string_view in C++...
C++ All Type Casts: ⢠static_cast In C++
INTERVIEW PLAYLIST
------------
C++ Interview Q&A: ⢠Structural Padding & P...
C++ Interview Q&A For Experienced: ⢠How delete[] Knows How...
Linked List Interview Questions: ⢠Find Kth Node From Bac...
BST Interview Questions: ⢠Search Element In Bina...
Array Interview Questions: ⢠Reverse An Array
String Interview Questions: ⢠Check String Is Palind...
Bit Manipulation Questions: ⢠Find Set Bit In Intege...
Binary Tree Interview Question: ⢠Invert Binary Tree
Sorting Algorithms: ⢠Bubble Sort
C++ MCQ: ⢠Video
C MCQ: ⢠What printf returns af...
C Interview Questions: ⢠Designated Initializat...
QUICK SHORT VIDEOS
-------------
C++ Short : ⢠C++ Short Videos
C Short : ⢠Shorts C Programming MCQ
In this video we will learn about BITWISE OPERATORS in c and c++.
Following are the bitwise operators in c and c++:
1. The bitwise AND in C or C++ takes two numbers as operands and does AND on every bit of two numbers. The result of AND is 1 only if both bits are 1.
2. The bitwise OR in C or C++ takes two numbers as operands and does OR on every bit of two numbers. The result of OR is 1 if any of the two bits is 1.
3. The bitwise XOR in C or C++ takes two numbers as operands and does XOR on every bit of two numbers. The result of XOR is 1 if the two bits are different.
4. The left shift in C or C++ takes two numbers, left shifts the bits of the first operand, the second operand decides the number of places to shift.
5. The right shift in C or C++ takes two numbers, right shifts the bits of the first operand, the second operand decides the number of places to shift.
6. The bitwise NOT in C or C++ takes one number and inverts all bits of it.
#cprogramming #cpp #programming #computerscience #softwareengineering #tutorial
This is the CLEAREST explanation I have seen on CZcams
Thanks man
Excellent, thank you, bro. For the first time, I understand bitwise operators in C++
best lecture on youtube about bitwise operators (so deep)
I love it
Thanks dude.. :)
Thanks bro, understood all the operators very well. Glad I found this video on YT at the top of search results.
Thanks man..
really appreciate the work man, 100% sure this will get me through my exams!
glad i could help!!
Helped me a lot, Thank you!
Rafael Duarte, Glad you liked it.
Thank you, this helped me, and you didn't bore me thank u.
Welcome..
Excellent Lecture. Thanks.â¤ď¸â¤ď¸â¤ď¸
The explanation for left and right shift operands is dayuumm đđ!
Glad you liked it
Thanks alot man , it was very clear and simple.
Welcome
Very helpful in short time..
Glad to hear that
Very helpful video sir!
Thanks
â¤ď¸â¤ď¸â¤ď¸â¤ď¸ very clear explanation đđ
Glad it was helpful!
Thank you so much sir for gift us this video
You are welcome!!
Nice explanation.
Thanks dude enjoy the learning :)
Great videos ! Which software are you using for writing and highlighting on screen?
I take screenshots and draw on image.
Thanks sir....Hearty Salute..... Pls continue making videos....
Thanks man!!
this was really helpful thanks man
+Amulike Kennedy Welcome dude.
Keep Learning!!
Nice explanation.thank you
Glad you liked it!!
Great Explanation brother. It helped me a lot. Hare Krishnaâ¤ď¸â¤ď¸â¤ď¸â¤ď¸â¤ď¸
Glad it helped
thanks man!
Happy to help!
Excellent đ
Thanks
Thanks a Lot
Glad it helped
It was awesome.... thank u sir.
Glad you liked it
Great video, keep up the good work! :)
Thanks, will do!
Why parenthesis is needed in (a&b)
Parenthesis is needed to group operations and its preference is high.
@@CppNuts yeah but why it is not executing... If there is no parthesis... Without parenthesis iam getting an error in case of bitwise operations
@@vasireddyganesh Please show your program.
@@CppNuts
#include
Using namespace std;
Int main()
{
Int a, b;
Cin>>a>>b;
Cout
Seems cout is getting confused here, should I print a a or should I print a & b.
That's why when you are using parentheses that time it is sure that the result of a & b is going to be printed.
If(1) {Sir can you please share the resources from where you got this level of deep knowledge in c++}
Hahahaha
No i don't have name for that, it comes with time.
nice one bro
+Sonu Lohani Thanks dude..
thank u
Welcome..
nice!
Thanks for the visit
~1 is -2 right???
what is advatage of using left shift operator???
i mean use of
there are so many advantages, one of them is it gets double. So if you just want to make some number double then instead of multiplying with 2 is costly process. Insted use left shift.
Osm video
Thanks..
Sir please describe bitwise not operator
Thanks for reminding me i will surely add it.
đ¤Š
:D
I love you. Friend
Thanks man...