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
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is pivot in c?
What are the 32 keywords in c?
Why main is used in c?
How can I discover how many arguments a function was actually called with?
What are the rules for the identifier?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
Write a program of prime number using recursion.
What are two dimensional arrays alternatively called as?
What are the salient features of c languages?
How do you construct an increment statement or decrement statement in C?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What are structural members?
Explain what is page thrashing?
In C programming, how do you insert quote characters (‘ and “) into the output screen?