Answer Posted / srinu naik
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 |
Post New Answer View All Answers
Why does not c have an exponentiation operator?
What is actual argument?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What are the different types of constants?
What is formal argument?
what are the 10 different models of writing an addition program in C language?
Can you write a programmer for FACTORIAL using recursion?
What is an example of structure?
Is it better to use a macro or a function?
How can I prevent another program from modifying part of a file that I am modifying?
Explain continue keyword in c
How do c compilers work?
What are pointers? What are different types of pointers?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Explain what are the __date__ and __time__ preprocessor commands?