How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance
Answer Posted / emperor of america
using bitwise operator works 100%:
x^=y;
y^=x;
x^=y;
using +/- works sometime, need to consider overflow.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What are the types of type specifiers?
Why calloc is better than malloc?
What is a pointer value and address in c?
What is #include called?
What is meant by errors and debugging?
Mention four important string handling functions in c languages .
What is the use of gets and puts?
How do you declare a variable that will hold string values?
What are the advantages of the functions?
What does do in c?
Differentiate between a for loop and a while loop? What are it uses?
can we have joblib in a proc ?
What is switch in c?
How can this be legal c?
Explain what is a stream?