GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  OOPS

 Print  |  
Question:   What is the most efficient way to count the number of bits which are set in a value?



July 07, 2005 12:20:29 #1
 Santosh   Member Since: Visitor    Total Comments: N/A 

RE: What is the most efficient way to count the number of bits which are set in a value?
 
shifting each bit left till the no of bits end
     

 

Back To Question