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:
Shift Operations
What will the following piece of code do?
int f(unsigned int x) {
int i;
for (i=0; x!=0; x>>1) {
if (x & 0x1)
i++;
}
return i;
}
✍: FYIcenter
Answer: returns the number of ones in the input parameter X.
2007-02-26, 6825👍, 0💬
Popular Posts:
Explain simple Walk through of XmlReader ? In this section we will do a simple walkthrough of how to...
How Can we change priority & what levels of priority are provided by Dot Net? Thread Priority ca...
What is hashing? To hash means to grind up, and that's essentially what hashing is all about. The he...
If XML does not have closing tag will it work? No, every tag in XML which is opened should have a cl...
How To Create an Array in PL/SQL? - Oracle DBA FAQ - Introduction to PL/SQL If you want create an ar...