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...

how to find a 5th bit is set in c program

Answer Posted / valli

main()
{
int n;
printf("enter n:");
scanf("%d",&n);
if(n&(1<<5);
printf("5th bit in %d is set",n);
}

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between null pointer and void pointer.

1081


What is sizeof c?

1070


What is the function of multilevel pointer in c?

1085


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2690


What is assignment operator?

1057


What does main () mean in c?

1095


What is a structural principle?

1161


What is scanf () in c?

1126


Can variables be declared anywhere in c?

1087


What is the difference between exit() and _exit() function in c?

1075


Write the test cases for checking a variable having value in range -10.0 to +10.0?

2316


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2243


What is a static function in c?

1163


What is data type long in c?

1076


What are derived data types in c?

1085