using |=

Started by
0 comments, last by Nickels 20 years, 6 months ago
what does that mean?
Climb a mountain, every dawn.
Advertisement
bit or and set equal

int x = 0;

x |= 1<<5;
this is the same as
x = x | (1<<5);

bit 5 of x is now set to 1, the rest of the bits are unchanged.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement