what is the use of operator ^ in C ? and how it works?
Answer Posted / vinay sachan
exclusive OR ^ is a bitwise operator known as (left assoc).
expr1 ^ expr2
ex.
0x12 ^ 0x58
returns 0x4A (the set bits in the result are those that are set in either 0x12 or 0x58, but not set in both).
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Is there anything like an ifdef for typedefs?
Do you know the use of fflush() function?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
What is c language used for?
Why can't I perform arithmetic on a void* pointer?
There seem to be a few missing operators ..
What are header files? What are their uses?
Explain what is the difference between text files and binary files?
What is difference between union and structure in c?
Explain null pointer.
What is line in c preprocessor?
What is floating point constants?
What are the advantages of using new operator as compared to the function malloc ()?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
what is the height of tree if leaf node is at level 3. please explain