Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
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 checking whether a particular bit is on or off?
✍: FYIcenter
The bitwise AND operator. Here is an example:
enum {
KBit1 = 0x00000001
KBit2 = 0x00000010,
KBit3 = 0x00000100,
...
};
if ( some_int & KBit24 )
printf("Bit number 24 is ON\n");
else
printf("Bit number 24 is OFF\n");
2007-02-26, 8899👍, 0💬
Popular Posts:
What would you use to compare two String variables - the operator == or the method equals()? You can...
How To Escape Special Characters in SQL statements? - MySQL FAQs - Introduction to SQL Basics There ...
How To Manage Transaction Isolation Level? - Oracle DBA FAQ - Introduction to PL/SQL Transaction iso...
How To Create an Add-to-Bloglines Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS News...
Can one execute dynamic SQL from Forms? Yes, use the FORMS_DDL built-in or call the DBMS_SQL databas...