ALLInterview.com
Categories
|
Companies
|
Placement Papers
|
Code Snippets
|
Certifications
|
Visa Questions
Post Questions
|
Post Answers
|
My Panel
|
Search
|
Topics
|
Errors
srinu
{ City } bangalore
< Country > india
* Profession * student
User No #
63058
Total Questions Posted #
0
Total Answers Posted #
1
Total Answers Posted for My Questions # 0
Total Views for My Questions # 0
Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 0
Questions / { srinu }
Questions
Answers
Category
Views
Company
eMail
Answers / { srinu }
Question
{
4166 }
Determine if a number is a power of 2 at O(1).
Answer
if((~n+1)& n ==n) printf("\n Given number is power of 2");
else printf("\Not the POwer of 2");
Is This Answer Correct ?
1 Yes
0 No