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 linear search?
Write a program on swapping (100, 50)
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
What is exit() function?
What is default value of global variable in c?
What is the Purpose of 'extern' keyword in a function declaration?
Why is c fast?
What is the importance of c in your views?
What are structures and unions? State differencves between them.
Why c is a mother language?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Does c have class?
What is New modifiers?
What is operator promotion?
What do you mean by keywords in c?