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 we not create function inside function.
When should you use a type cast?
What is a constant?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What is a memory leak? How to avoid it?
Is c easy to learn?
Explain what is meant by 'bit masking'?
Explain the difference between #include "..." And #include <...> In c?
What is the difference between printf and scanf in c?
Is void a keyword in c?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
What does the characters “r” and “w” mean when writing programs that will make use of files?
How can a process change an environment variable in its caller?
Explain the advantages and disadvantages of macros.
What are categories used for in c?