How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / manoj
#define TURN_OFF_BIT_LAST(x) ((x) & 1) ? ((x) &= ((~0) <<
1)):(x)=(x)
| Is This Answer Correct ? | 0 Yes | 2 No |
write a c/c++ programthat connects to a MYSQL server and checks if the INNoDB plug in is installed on it.If so your program should print the total number of disk writes by MYSQL.
what is pointer
int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?
Explain what’s a signal? Explain what do I use signals for?
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.
Explain modulus operator. What are the restrictions of a modulus operator?
What are the storage classes in C?
Hi Every one......... Please Any body give me the answer for my question. Is it possible to print the word "PRINT F", without using printf() statement in C-Language.
Diff between for loop and while loop?
What is a c token and types of c tokens?
related proverb of "dont count your chicken before it hatches"
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.