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


Please Help Members By Posting Answers For Below Questions

How can I get back to the interactive keyboard if stdin is redirected?

661


What is malloc() function?

628


to find the closest pair

1813


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

700


What is size of union in c?

570






What is volatile variable in c?

652


What are pointers really good for, anyway?

606


What is a class c rental property?

597


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

572


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

3240


List a few unconditional control statement in c.

552


code for find determinent of amatrix

1506


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.

2671


What are high level languages like C and FORTRAN also known as?

670


What is a structural principle?

633