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

how do you execute a c program in unix.

1122


Write a code to remove duplicates in a string.

1049


What is a 'null pointer assignment' error?

1227


What is context in c?

932


Which programming language is best for getting job 2020?

1057


what does static variable mean?

1119


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1103


How are 16- and 32-bit numbers stored?

1293


When should you use a type cast?

1133


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1274


What does the format %10.2 mean when included in a printf statement?

1663


What are the general description for loop statement and available loop types in c?

1133


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1705


Write a factorial program using C.

1087


Tell me what is null pointer in c?

1091