write a c program whether the given number is power of 2 or
not using the bitwise operators?

Answers were Sorted based on User's Feedback



write a c program whether the given number is power of 2 or not using the bitwise operators?..

Answer / good_boy123

you go to the market and bought book "let us c" wiritten by
yashbant kanitkar and find the answer in the book

bhik mang ne adat choro varna bhikari ban jo gay

Is This Answer Correct ?    3 Yes 9 No

write a c program whether the given number is power of 2 or not using the bitwise operators?..

Answer / ritesh kunte

#include<conio.h>
#include<stdio.h>
void main()
{
int no;
clrscr();
printf("Enter any no:");
scanf("%d",&no);
if(no%2==0)
printf("No is multiple of 2");
else
printf("No is not multiple of 2");
getch();
}

Is This Answer Correct ?    5 Yes 18 No

Post New Answer

More English Interview Questions

SSC ? Grade ?D? Exam ENGLISH CLOSET TEST TEST ? 19

1 Answers  


I sudhakar i applied for the post of AAI jr. executive ( Electronics) written exam on october. I want to know the syllabus and pattern of the exam in the AAI site there is no information on syllabi......so, please be patient and forward me the syllabus for the exam my friends....... I will be very much thankful to you. my email mailid- ecsudhakar@gmail.com

0 Answers  


1)If a shopkeeper sell 950gm things as 1000gms by cheating the weight then what is his gain in percentage.

15 Answers   Yahoo,


tell me about your what did work in unit?

1 Answers   Infosys, TCS,


what is icici?

7 Answers   Banking,






hi,am sitting for amptitude tests for intern position.please send me question to guide me in revisin

0 Answers  


what is the most importent in my life now

9 Answers  


kick, ____ , walk?? throw, feet, hand, toes

5 Answers   BSTN,


i have applied syndicate bank clerk post . what type of questions may be will ask at the time of interview .Is there prefear for bnking questions? or prefere for current affirs questions?? plese send me any one answer....thank you.

0 Answers  


In the new year new you got a wish. What you will in these three. 1. $1000000 2. Lottery Ticket 3. 10 Years of Live

6 Answers   Sutherland,


Plz mail me some aptitute questions which helps me to face SBI clerical exam.

2 Answers   State Bank Of India SBI,


contractor have done the work with out any information and blamed me that they got permission from my side. Now how do i write a letter to my boss against contractor

1 Answers  


Categories