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

write a c program to change only the 3rd bit of the
particular number such that other bits are not affected..
if bitnum=10(say.. it can be any no..

Answer Posted / vasanth

hi Ajay... that is a great work.. well done.. but ur program
works only to change 0 to 1 of any bit but not 1 to 0..
anyhow good job...

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

992


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

985


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1243


What are the types of c language?

976


What is function pointer c?

1032


What are the different types of control structures in programming?

1085


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

946


Why void main is used in c?

999


What are global variables?

1117


Why c is a procedural language?

1010


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1171


Give the rules for variable declaration?

1114


When would you use a pointer to a function?

993


How can you tell whether two strings are the same?

1204


With the help of using classes, write a program to add two numbers.

983