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

what is vpn and describe the diffrence between ras and vpn.

3 Answers   Infotech,


how to get my question ,answer

1 Answers  


plz send me eng apti ques and sbi clarical ques plz... bikranz4u@yahoo.com

0 Answers  


Talent or Hrad work wich is most important for me?

19 Answers   Infosys,


working area of company.in which sector company work.

1 Answers  


i want last 3 years interview question and answer.

0 Answers   IBM, TCS,


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

15 Answers   Yahoo,


Give two activities for improving the skill of speaking.

1 Answers   Mahatma Gandhi University,


_ model shows how the network function of a computer ought to be organize?

2 Answers   TATA,


"Day" is related to "Night" int he same way as "Kind" is related to............

12 Answers   CMPFO, Coal India, Corporation Bank, HCL, Pakistan Engineering Council, Vinayak Traders,


Table and shelve a) Similar b)Contradictory c) Not related

2 Answers   Yardi,


which insurance company is with ambit

0 Answers  


Categories