meera


{ City } pittsburgh
< Country > usa
* Profession * student
User No # 10646
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 # 76
Users Marked my Answers as Wrong # 13
Questions / { meera }
Questions Answers Category Views Company eMail




Answers / { meera }

Question { nvidia, 40387 }

Function to find the given number is a power of 2 or not?


Answer

int ispow2(int number)
{
if(n return 0;
}

else {

return !(number&(number-1));

}

Is This Answer Correct ?    76 Yes 13 No