swapping of two numbers without using third variable using
AND and OR operators
Answer Posted / vignesh1988i
however we can implement using EXoR , where it is made of
AND and OR gate too....
x=90;
y=51;
x^=y^=x;
the value of x & y will be swapped.
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
Difference between malloc() and calloc() function?
What is the difference between array_name and &array_name?
What are keywords c?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
What are local static variables?
Why cant I open a file by its explicit path?
How can a number be converted to a string?
What is stack in c?
Is struct oop?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
Differentiate fundamental data types and derived data types in C.
Explain how are 16- and 32-bit numbers stored?
Which is best book for data structures in c?
Explain how do you determine a file’s attributes?
Do array subscripts always start with zero?