Function to find the given number is a power of 2 or not?
Answer Posted / ms
int ispow2(int number)
{
if(n<o) {
return 0;
}
else {
return !(number&(number-1));
}
Is This Answer Correct ? | 76 Yes | 13 No |
Post New Answer View All Answers
How can I send mail from within a c program?
what is the diffrenet bettwen HTTP and internet protocol
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
Write a factorial program using C.
When should we use pointers in a c program?
What is the difference between #include and #include 'file' ?
Who invented bcpl language?
What is void c?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
Can we replace the struct function in tree syntax with a union?
What is the function of this pointer?
Why can’t we compare structures?
find the sum of two matrices and WAP for it.
Explain what are linked list?
What are the basic data types associated with c?