write a program to swap Two numbers without using temp variable.
Answer Posted / dhruv
I am not giving an answer, but just wanted to point out that
most of the solutions which try to add (a+b) and then
subtract from it will not work if (a+b) exceeds the maximum
value an int can hold.
So even if it looks good on paper it will give erroneous
results when run on a machine
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain do array subscripts always start with zero?
What are examples of structures?
What are # preprocessor operator in c?
How do c compilers work?
Explain data types & how many data types supported by c?
What is d scanf?
Is c is a low level language?
What are identifiers and keywords in c?
Can a pointer be volatile in c?
What is wrong in this statement?
Explain what is dynamic data structure?
What is merge sort in c?
How can a string be converted to a number?
What are types of preprocessor in c?
find the sum of two matrices and WAP for it.