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 #include stdio h?
What is union and structure?
Tell me what is the purpose of 'register' keyword in c language?
What are nested functions in c?
Explain how do you use a pointer to a function?
What are the advantage of c language?
write a program to generate address labels using structures?
Why is #define used?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is atoi and atof in c?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
What is the use of getchar functions?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
What is the easiest sorting method to use?
What are the uses of null pointers?