Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Bitwise Operations
Which bit wise operator is suitable for turning on a particular bit in a number?
✍: FYIcenter
The bitwise OR operator. In the following code snippet, the bit number 24 is turned ON:
enum {
KBit1 = 0x00000001
KBit2 = 0x00000010,
KBit3 = 0x00000100,
...
};
some_int = some_int | KBit24;
2007-02-26, 8037👍, 0💬
Popular Posts:
How To Get the Minimum or Maximum Value of an Array? - PHP Script Tips - PHP Built-in Functions for ...
Can you explain project life cycle ? Figure :- 12.2 Life cycle of a project There are five stages of...
What's the difference between J2SDK 1.5 and J2SDK 5.0? There is no difference, Sun Microsystems just...
What is DAR (Decision Analysis and Resolution) ? Decision Analysis and Resolution is to analyze poss...
How To Control White Spaces between Table Cells? - XHTML 1.0 Tutorials - Understanding Tables and Ta...