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
What are the keywords in c?
How can you restore a redirected standard stream?
Differentiate between ordinary variable and pointer in c.
Can you define which header file to include at compile time?
C language questions for civil engineering
Can stdout be forced to print somewhere other than the screen?
Write a program to generate the Fibinocci Series
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
List some basic data types in c?
Can we initialize extern variable in c?
What is difference between structure and union in c?
What does 4d mean in c?
What is sizeof array in c?
What are the types of bitwise operator?
What happens if you free a pointer twice?