Write a function that accepts two numbers,say a and b and
makes bth bit of a to 0.No other bits of a should get
changed.

Answer Posted / sandeep ambekar

Macro to Set a particular Bit..
#define SetBit(x,y) x | 0x1<<y

Macro to Clear a particular Bit..
#define ClearBit(x,y) x & ~(0x1<<y)

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is printf () in c?

586


define string ?

673


will u please send me the placement papers to my mail???????????????????

1369


write a program to concatenation the string using switch case?

1566


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

587






How can I access an I o board directly?

634


What are c header files?

587


What is d scanf?

605


What is the meaning of c in c language?

604


Is main a keyword in c?

644


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

582


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1082


How can variables be characterized?

1656


List the difference between a "copy constructor" and a "assignment operator"?

587


What are the 4 types of programming language?

596