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
What is hashing in c?
Can include files be nested?
How can you pass an array to a function by value?
What are loops in c?
What is structure of c program?
Why does this code crash?
If you know then define #pragma?
What are the advantages of c preprocessor?
What is the concatenation operator?
List the difference between a While & Do While loops?
What are the data types present in c?
Can the curly brackets { } be used to enclose a single line of code?
Explain why can’t constant values be used to define an array’s initial size?
What is typedef?
Explain what is wrong in this statement?