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
what is stack , heap ,code segment,and data segment
Is it cc or c in a letter?
What is union and structure in c?
Define Spanning-Tree Protocol (STP)
Explain what standard functions are available to manipulate strings?
How can I sort more data than will fit in memory?
What do you mean by a sequential access file?
Explain how do you determine a file’s attributes?
Explain about the functions strcat() and strcmp()?
#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); }
Can i use “int” data type to store the value 32768? Why?
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.
What is LINKED LIST? How can you access the last element in a linked list?
Explain what is the benefit of using enum to declare a constant?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.