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
Explain #pragma statements.
Explain what are the __date__ and __time__ preprocessor commands?
What is operator promotion?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Explain indirection?
What are different types of operators?
What are header files in c?
What is the use of structure padding in c?
What are loops in c?
Where are c variables stored in memory?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
Explain null pointer.
Which is better between malloc and calloc?
Is there a way to compare two structure variables?