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 stack , heap ,code segment,and data segment

2770


Is it cc or c in a letter?

1081


What is union and structure in c?

1291


Define Spanning-Tree Protocol (STP)

1182


Explain what standard functions are available to manipulate strings?

1130


How can I sort more data than will fit in memory?

1169


What do you mean by a sequential access file?

1136


Explain how do you determine a file’s attributes?

1093


Explain about the functions strcat() and strcmp()?

1096


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

1212


Can i use “int” data type to store the value 32768? Why?

1238


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

3216


What is LINKED LIST? How can you access the last element in a linked list?

1117


Explain what is the benefit of using enum to declare a constant?

1135


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2404