How we can set and clear bit in a byte using macro function?
Answer Posted / sunitha
take i=5;
print its binary value
now for setting a bit
i=i>>5|1;
this will set 5th bit in binary value of 5
now for clearing a bit
i=i>>5 xor 1
this will clear 5th bit in binary value of 5
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
formula to convert 2500mmh2o into m3/hr
Explain pointer. What are function pointers in C?
What is the difference between char array and char pointer?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
What is wrong with this declaration?
Does c have an equivalent to pascals with statement?
What will be the outcome of the following conditional statement if the value of variable s is 10?
Why c is known as a mother language?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
What is the total generic pointer type?
Tell me about low level programming languages.
Why is a semicolon (;) put at the end of every program statement?