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 is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Describe static function with its usage?
How can I open files mentioned on the command line, and parse option flags?
Are the expressions * ptr ++ and ++ * ptr same?
Is register a keyword in c?
Explain built-in function?
Why clrscr is used in c?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is multidimensional arrays
Explain how can I right-justify a string?
Write a program for Overriding.
What does 3 periods mean in texting?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What does return 1 means in c?
What are the advantages and disadvantages of a heap?