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 the difference between exit() and _exit() function?
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?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What are the types of c language?
What is function pointer c?
What are the different types of control structures in programming?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
Why void main is used in c?
What are global variables?
Why c is a procedural language?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Give the rules for variable declaration?
When would you use a pointer to a function?
How can you tell whether two strings are the same?
With the help of using classes, write a program to add two numbers.