• +91 9723535972
  • info@interviewmaterial.com

C Interview Questions and Answers

Question - 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; }

Answer - returns the number of ones in the input parameter X

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners