C bitwise operators 🔣

  Рет қаралды 72,735

Bro Code

Bro Code

Күн бұрын

C bitwise operators & | ^ tutorial example explained
#C #bitwise #operators

Пікірлер: 66
@BroCodez
@BroCodez 2 жыл бұрын
#include int main() { // BITWISE OPERATORS = special operators used in bit level programming // (knowing binary is important for this topic) // & = AND // | = OR // ^ = XOR // > right shift int x = 6; // 6 = 00000110 int y = 12; // 12 = 00001100 int z = 0; // 0 = 00000000 z = x & y; printf("AND = %d ", z); z = x | y; printf("OR = %d ", z); z = x ^ y; printf("XOR = %d ", z); z = x > 2; printf("SHIFT RIGHT = %d ", z); return 0; }
@namansalgotra6293
@namansalgotra6293 Жыл бұрын
What software do you use?
@Abon963
@Abon963 Жыл бұрын
​@@namansalgotra6293If you are talking about where he writes the code it’s "Vs code"
@md.lutfullahillabib
@md.lutfullahillabib Ай бұрын
where is you "Bitwise Complement Operator (~ tilde) in c" tutorial? @BroCodez
@sevanthishekar4379
@sevanthishekar4379 4 ай бұрын
Quick Note: For Shift Left, like Bro mentioned there's a pattern.....every time you shift it, it doubles. Ex: int x = 6; for x
@spacewizerd
@spacewizerd 2 ай бұрын
thats cool thx man
@tomsterbg8130
@tomsterbg8130 Жыл бұрын
This was very easy to understand and while being really descriptive, thank you so much for making that video!
@xbaleks4609
@xbaleks4609 Жыл бұрын
better than a course that i bought (74.99$) on udemy... Thank you, very clear and understandable.
@MerrowGula
@MerrowGula 2 ай бұрын
you know that the udemy courses have discounts right ?
@guilhermecampos8313
@guilhermecampos8313 Ай бұрын
Warning: just buy udemy courses when they are on sale. It happens very often (something like every other week).
@guillaumelacroix8730
@guillaumelacroix8730 Жыл бұрын
you are a legend mate! Thank you for this clear explanation!
@Raphamerlo
@Raphamerlo Күн бұрын
Thank you. I perfectly understood.
@pemudahijrah2454
@pemudahijrah2454 8 ай бұрын
So bassically 12&6 is equal to 6&12 is it?
@Vishnu-wz5ng
@Vishnu-wz5ng 7 ай бұрын
Yes
@Garrison86
@Garrison86 2 жыл бұрын
Awesome thanks for the demo on bit wise operators, super easy to understand 👍👍👍👍
@arnavtripathiyo
@arnavtripathiyo 5 ай бұрын
Thank you so much very easy to understand because of your video
@CoffeeDump
@CoffeeDump 2 ай бұрын
i finally know what this operators means, thanks.
@SuperIL12
@SuperIL12 3 ай бұрын
Excellent! Perfect explanation!
@ronalbocher4159
@ronalbocher4159 7 ай бұрын
Thank you so much! Extremely clear, amazing explanations!
@Mathieuny
@Mathieuny 2 ай бұрын
Thanks for the video. Very understandable, good to get me started :)
@ironmonkey1990
@ironmonkey1990 Ай бұрын
Thank you!
@abdoumourouj6551
@abdoumourouj6551 2 күн бұрын
huge respect
@nataaalia
@nataaalia 7 ай бұрын
Such a good explanation
@antoinebguitar2869
@antoinebguitar2869 5 ай бұрын
Oh so those scary looking math equations are actually just logic gates and boolean algebra lol
@Abon963
@Abon963 Жыл бұрын
Thanks!You made it very much easier
@sais640
@sais640 8 ай бұрын
thanks bro code for the helpful tips :) and to everyone have fun programming
@thatonemailbox
@thatonemailbox Жыл бұрын
What kinds of uses do these commands have?
@Abon963
@Abon963 Жыл бұрын
One use is : It can be really fast for calculations
@SoDamnMetal
@SoDamnMetal 8 ай бұрын
@@Abon963 so, something the compiler would automatically optimize for you?
@Exploshi
@Exploshi 6 ай бұрын
to quickly find if a number is a power of two you can do "return n>0 and n&(n-1)"
@usurpvision
@usurpvision 6 ай бұрын
Ok cool thanks my reference book did not explain shifts very well.
@jacksoncobb2860
@jacksoncobb2860 Жыл бұрын
Super helpful video! Thank you!
@ansoncheng6418
@ansoncheng6418 2 ай бұрын
Thank you for this
@mastersrv470
@mastersrv470 2 жыл бұрын
Thanks bro
@MiyamotoMusashi23839
@MiyamotoMusashi23839 17 күн бұрын
thx buddy
@cd-stephen
@cd-stephen 2 жыл бұрын
Bro!!!!! You are awesome and thank you
@mortenlund1418
@mortenlund1418 11 ай бұрын
thx and great style
@MonirsOfficial
@MonirsOfficial 7 ай бұрын
Masterpiece❤
@mahmoudalfawair2967
@mahmoudalfawair2967 2 жыл бұрын
giga big coc chad thx
@MultiDringus
@MultiDringus Жыл бұрын
bruh
@user-lr9uo7fv8r
@user-lr9uo7fv8r Жыл бұрын
BIG LIKE!
@Darkin-w
@Darkin-w 7 ай бұрын
Ty :)
@prumchhangsreng979
@prumchhangsreng979 2 жыл бұрын
I'm grateful that I didn't skip binary in high school math class.
@Dexterdevloper
@Dexterdevloper 5 ай бұрын
Thanks.
@indigo_diary
@indigo_diary 10 ай бұрын
Thank you so much :)
@itsrmbaby
@itsrmbaby 6 ай бұрын
شكرا
@Thundergreen-lj2ot
@Thundergreen-lj2ot 2 ай бұрын
Is it just me who noticed the text size change as the first change?
@BARATHBSIT
@BARATHBSIT 2 жыл бұрын
Your a real programmer 😎
@aymanmouhcine5749
@aymanmouhcine5749 Жыл бұрын
Thank you
@bowa
@bowa 7 ай бұрын
King!
@_4p_
@_4p_ Жыл бұрын
where is ~ (complement operator)
@hemozone9726
@hemozone9726 Жыл бұрын
thanks man
@Lucky_Wings
@Lucky_Wings 2 ай бұрын
yeah i completely forgot it
@113_bachtiardanuarta_b2
@113_bachtiardanuarta_b2 Жыл бұрын
Simple yet easy to understand
@kevingerges9539
@kevingerges9539 6 ай бұрын
for xor , 1 OR 1 = 1: If both bits are 1, the result is , how come 1 and 1 is zero
@zakd6768
@zakd6768 2 ай бұрын
X is for exclusive. Think of OR as being ok with AND. 1 OR 1 = 1 1 OR 0 = 1 Because AT LEAST 1 is 1. So OR doesn't mind both being 1. 1 XOR 1 = 0 Because AT MOST should be 1. Break it into human speech and it becomes easier. True is 1 and false is 0 a XOR b = if exclusively one operand is true, return true. Else return false. AND =BOTH OR =AT LEAST 1 XOR =AT MOST 1
@jumbo999614
@jumbo999614 10 ай бұрын
How to shift zero? Let's say x = 11110111 I want 11101111 (shift left) or 11111011 (shift right).
@HARSATHABINAVAG
@HARSATHABINAVAG 9 ай бұрын
Left mate
@fedorvasilev5883
@fedorvasilev5883 Жыл бұрын
Why do you use %d ?
@atheist9672
@atheist9672 7 ай бұрын
It is an format specifier it this time you know what is that....I hope you know😅😅😅😅
@naveenkumar1853
@naveenkumar1853 8 ай бұрын
Hello
@Jesusiskingbroo
@Jesusiskingbroo 2 жыл бұрын
Robert
@motasam8122
@motasam8122 Жыл бұрын
try 100
@dredogu06
@dredogu06 2 жыл бұрын
Thanks bro
@nattyzaddy6555
@nattyzaddy6555 Жыл бұрын
Thanks bro
Learn C memory addresses in 7 minutes 📬
7:01
Bro Code
Рет қаралды 59 М.
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 28 МЛН
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 20 МЛН
2 Years Of Learning C | Prime Reacts
22:24
ThePrimeTime
Рет қаралды 274 М.
Bitwise Operators and WHY we use them
8:41
Alex Hyett
Рет қаралды 73 М.
everything is open source if you can reverse engineer (try it RIGHT NOW!)
13:56
Low Level Learning
Рет қаралды 1,4 МЛН
Bitwise Operators | C Programming Tutorial
12:19
Portfolio Courses
Рет қаралды 23 М.
why do void* pointers even exist?
8:17
Low Level Learning
Рет қаралды 355 М.
I FOUGHT A BOT STRONGER THAN MITTENS!!!!
26:44
GMHikaru
Рет қаралды 283 М.
Algorithms: Bit Manipulation
9:06
HackerRank
Рет қаралды 535 М.
Bitwise Operators in Python - Tutorial & Application Fields
28:33
why are switch statements so HECKIN fast?
11:03
Low Level Learning
Рет қаралды 405 М.
the cleanest feature in C that you've probably never heard of
8:13
Low Level Learning
Рет қаралды 134 М.
Google Pixel 9/Pro Review: Gimmick or Good?
24:05
Marques Brownlee
Рет қаралды 3,4 МЛН
Покупка бюджетного ПК на Wildberries? 🤬
0:59
Тест Ryzen AI 9 HX 370 и графики 890m
27:29
PRO Hi-Tech
Рет қаралды 93 М.