hi,
I am just trying to find out what the ~ does,
e.g.
number = (number + 3) & ~3;
any help?
hi,
I am just trying to find out what the ~ does,
e.g.
number = (number + 3) & ~3;
any help?
In the principle of "Give a man a fish, and he will ask for another the next day, teach a man to fish, and he will not need to ask for another fish", I'll give you a link for ALL C and C++ operators:
http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B
The one you are looking for is in the second section in the big table.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
thanks a lot, that is what i need,much appreciated