Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 5824👍, 0💬
Popular Posts:
How does ASP.NET maintain state in between subsequent request ? Refer caching chapter.
How do I force the Dispose method to be called automatically, as clients can forget to call Dispose ...
Can you explain why your project needed XML? Remember XML was meant to exchange data between two ent...
What are shared (VB.NET)/Static(C#) variables? Static/Shared classes are used when a class provides ...
How do you open an SSH connection to a remote box? ????