May not use bitwise unless you're programming for embedded?
Bullshit, you try making a SDL Window using double buffers and no boarders without using a bitwise OR (or any function using multiple flags at once for that matter)
In the video it says that the result of the exclusive or operation y==62. It isn't. If the first bit, or least significant bit (LSB) is 1 then it's not divisible by 2. Easy to spot.
int x = 193;
int y = x ^ 0xf0;
Y is: 49
himerius2007 1 week ago
Thank you very much.Pretty helpful as I'm interested in embedded C
stopwarstartmetal 1 week ago
May not use bitwise unless you're programming for embedded?
Bullshit, you try making a SDL Window using double buffers and no boarders without using a bitwise OR (or any function using multiple flags at once for that matter)
commodore256 3 weeks ago
Thank you so very much! Makes so much sense now! :) Thank you!
FloormanUK 3 weeks ago
thanks very much!! great help - CS232 @ U of I
gulabZjamal 1 month ago
Thank you I really appreciated it.
demonwx10 2 months ago
Thanks a lot. This was really helpful.
gauravbutola 2 months ago
great job now i can score more in tommorow test
karma4796 4 months ago
Great tutorial...especially noting where and when these operations are used in the programming world. Embedded programming is where I want to go.
Exclusive OR slide...seems y = 62 /* 0011 0001 */ should be 49? bit 6(32), bit 5(16) and bit 0(1)
lamarts100 7 months ago
these are used in exams on uni's :(
shebotnov 8 months ago
What if a variable's value cannot be held in a single byte?
How then are the comparing bits lined up between the memory location of two variables when using these operators?
Shorty20122012 9 months ago
Wow, thanks for the tutorial. Currently learning Objective-C and helped cleared up a lot of things!
iSpinify 11 months ago
great tutorial xD
detonations2 1 year ago
This has been flagged as spam show
In the video it says that the result of the exclusive or operation y==62. It isn't. If the first bit, or least significant bit (LSB) is 1 then it's not divisible by 2. Easy to spot.
refa42 1 year ago
Comment removed
refa42 1 year ago
Thank you for this video. Clears away some of the fog.
fadlan12 1 year ago
Just wanted to say thanks. Your video did for me in 10 minutes what the book titled "Deitel & Deitels C How To Program" couldn't do in 20 pages.
danielszabo1981 1 year ago 2
Thank you, that really helped.
GamingJediPwns 2 years ago
bear in mind you can also use bitwise ops in the following fashion.
variable |= 10; // logical OR with 1010 (binary)
variable ^= 10;
variable >>= 2; //shift
etc...
0121ryanh117 2 years ago
I use bitwise ops for emulation.
0121ryanh117 2 years ago
Very helpful, but some exampled would have been nice, simple things like altering letter case by changing the 6th bit...
xfx1118 2 years ago
thanks
steave707 2 years ago
I get it now! thanks a bunch
mosle123 2 years ago