How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
Answer Posted / manoj
#define TURN_OFF_BIT_LAST(x) ((x) & 1) ? ((x) &= ((~0) <<
1)):(x)=(x)
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How can I get back to the interactive keyboard if stdin is redirected?
What is malloc() function?
to find the closest pair
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
What is size of union in c?
What is volatile variable in c?
What are pointers really good for, anyway?
What is a class c rental property?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
List a few unconditional control statement in c.
code for find determinent of amatrix
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
What are high level languages like C and FORTRAN also known as?
What is a structural principle?