Function to find the given number is a power of 2 or not?
Answer Posted / sheikh rasel
#include<stdio.h>
main()
{
int i;
if(i%2=0)
printf("The given number is a power of 2");
else
printf("The given number is not a power of 2");
return 0;
}
Is This Answer Correct ? | 6 Yes | 133 No |
Post New Answer View All Answers
How many types of arrays are there in c?
What is wild pointer in c?
what is the role you expect in software industry?
Do you know the use of 'auto' keyword?
What is the difference between array and pointer?
Define and explain about ! Operator?
What is a spanning Tree?
What are the different properties of variable number of arguments?
What are the advantages of using linked list for tree construction?
Explain the difference between exit() and _exit() function?
Describe explain how arrays can be passed to a user defined function
What does c mean before a date?
How many data structures are there in c?
Are the variables argc and argv are always local to main?
What is the sizeof () a pointer?