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
The statement, int(*x[]) () what does in indicate?
What does typedef struct mean?
difference between Low, Middle, High Level languages in c ?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
using only #include
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Explain indirection?
How can you increase the size of a statically allocated array?
What are the advantages of union?
What are local static variables?
Are the expressions * ptr ++ and ++ * ptr same?
What will be your course of action for a push operation?
Is linux written in c?
What is a sequential access file?
How was c created?