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 is c standard library?
Which is the best website to learn c programming?
Difference between Shallow copy and Deep copy?
What is the role of this pointer?
What does #pragma once mean?
Why is c still so popular?
Write the syntax and purpose of a switch statement in C.
What is extern c used for?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What are bitwise shift operators in c programming?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Was 2000 a leap year?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
How do we make a global variable accessible across files? Explain the extern keyword?
Does c have function or method?