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
Is null always equal to 0(zero)?
Explain what is the general form of a c program?
Is a pointer a kind of array?
how to construct a simulator keeping the logical boolean gates in c
find the sum of two matrices and WAP for it.
Can a function argument have default value?
Explain union.
What is far pointer in c?
What is preprocessor with example?
Why is c so important?
What is conio h in c?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What are header files in c programming?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1