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

Describe how arrays can be passed to a user defined function

1342


What standard functions are available to manipulate strings?

1207


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1445


What does nil mean in c?

1346


what do the 'c' and 'v' in argc and argv stand for?

1219


The __________ attribute is used to announce variables based on definitions of columns in a table?

1252


write a program fibonacci series and palindrome program in c

1097


Explain the use of 'auto' keyword in c programming?

1183


Describe dynamic data structure in c programming language?

1136


What are predefined functions in c?

1155


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

1205


What is output redirection?

1277


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

1101


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1134


Why do we use c for the speed of light?

1285