Answer Posted / hary
int Isnopowerof2(int n)
{
if (n & n-1)
return 0;
return 1;
}
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
Can you please explain the difference between syntax vs logical error?
What is the use of the function in c?
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is typedef?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What is a volatile keyword in c?
Define the scope of static variables.
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
The statement, int(*x[]) () what does in indicate?
how to count no of words,characters,lines in a paragraph.
What is malloc calloc and realloc in c?
What is the difference between c &c++?
Can you write the algorithm for Queue?
Explain what is a pragma?
What is linear search?