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
Define the scope of static variables.
What is size of union in c?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is wrong with this declaration?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
How can you find out how much memory is available?
What is ponter?
How can you tell whether two strings are the same?
write an algorithm to display a square matrix.
Can we declare function inside main?
What do mean by network ?
What are file streams?
What are reserved words?
Which node is more powerful and can handle local information processing or graphics processing?
Explain how do you determine a file’s attributes?