How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
Answer Posted / narendra
#define TURN_OFF_BIT_LAST(x) ((~0) >> 1) & x)
in the question it is asking to clear MSB not LSB
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What is the translation phases used in c language?
What is the benefit of using const for declaring constants?
write a c program in such a way that if we enter the today date the output should be next day's date.
Is c pass by value or reference?
What is return in c programming?
Can a program have two main functions?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is && in c programming?
What is nested structure with example?
What is the purpose of scanf() and printf() 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.
Explain what standard functions are available to manipulate strings?
What are the types of data files?
what are the 10 different models of writing an addition program in C language?