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 |
What is Dynamic Initialization.
Why c is procedure oriented?
write an algorithm to get a sentence and reverse it in the following format: input : I am here opuput: Here Am I note: first letter of every word is capiatlised
which types of data structure will i use to convert infix to post fix???
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
What is the difference between fread buffer() and fwrite buffer()?
can a union be self-referenced?
Explain how does free() know explain how much memory to release?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
Why c is called free form language?
1. main() { printf("%d",printf("HelloSoft")); } Output?