wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / shrikantauti
i dont know the methods but can give the code to swap values without temporary variable.
a b
a=a+b
b=a-b
a=a-b
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is c programing language?
What is meant by 'bit masking'?
how do you programme Carrier Sense Multiple Access
What is structure in c explain with example?
What are volatile variables in c?
Write a code to remove duplicates in a string.
Can you mix old-style and new-style function syntax?
What is an lvalue in c?
Explain what is operator promotion?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Where register variables are stored in c?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
Write a function that will take in a phone number and output all possible alphabetical combinations
What is meant by inheritance?
What are multidimensional arrays?