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

What is the function of volatile in c language?

1135


What is the difference between variable declaration and variable definition in c?

1060


How can I avoid the abort, retry, fail messages?

1138


Why is c platform dependent?

1092


How can I generate floating-point random numbers?

1132


What is the use of #include in c?

1087


In which header file is the null macro defined?

1346


What is return type in c?

1140


what is a function method?give example?

2368


Write a simple code fragment that will check if a number is positive or negative.

1155


What is wild pointer in c with example?

1064


What was noalias and what ever happened to it?

1048


a program that can input number of records and can view it again the record

1918


Is calloc better than malloc?

1023


Why is c fast?

1069