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 / rajkumar

#include<stdio.h>
void main()
{
int a;
a=a>>4;
if(a%2==1)
printf("the bit is set");
else
printf("the bit is not set");
}

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can the size of an array be declared at runtime?

1022


What is sizeof c?

999


What are data structures in c and how to use them?

1091


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1016


Can a pointer be volatile in c?

929


Can a void pointer point to a function?

967


Differentiate between full, complete & perfect binary trees.

1051


Lists the benefits of c programming language?

1063


Why header file is used in c?

1020


How do I send escape sequences to control a terminal or other device?

1010


How can I convert a number to a string?

1087


How can you allocate arrays or structures bigger than 64K?

1078


What will the preprocessor do for a program?

1013


Why does notstrcat(string, "!");Work?

1079


What is the function of multilevel pointer in c?

1022