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 printf a keyword?
What do header files do?
What is identifiers in c with examples?
Why is c used in embedded systems?
What is sizeof array in c?
cavium networks written test pattern ..
What are examples of structures?
How can I do graphics in c?
Differentiate between calloc and malloc.
Differentiate between a structure and a union.
List the difference between a "copy constructor" and a "assignment operator"?
What is return in c programming?
Is fortran still used today?
Write a program to reverse a string.
What is a static variable in c?