Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Given an unsigned integer, find if the number is power of 2?

Answer Posted / veerendra jonnalagadda

main()
{
int i;
printf("Enter Number :");
scanf("%d",&i);
if(i&(i-1))
printf("Not atwo power");
else
printf("Two 's Power");
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are types of preprocessor in c?

1116


Why isnt any of this standardized in c?

1132


How does free() know explain how much memory to release?

1112


Write a program to reverse a string.

1147


What is pass by reference in c?

1243


What is graph in c?

1104


What is define c?

1160


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2149


How to write a code for reverse of string without using string functions?

2207


What is bubble sort in c?

1107


What does a pointer variable always consist of?

1160


Do you know the difference between malloc() and calloc() function?

1112


is it possible to create your own header files?

1169


Do you know the difference between exit() and _exit() function in c?

1113


How are variables declared in c?

1151