write a program to swap Two numbers without using temp variable.
Answer Posted / shubham agarwal
the answer is simple
a=a*b;
b=a/b;
a=a/b;
this is one of the few possible ways to swap
simple app. of +,- can also brong the result
by
shubham agarwal
shubham.agarwal363@yahoo.com from NIT Srinagar
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
Where define directive used?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
Write a program to swap two numbers without using third variable?
how to construct a simulator keeping the logical boolean gates in c
What is merge sort in c?
how logic is used
What is omp_num_threads?
Explain how do you declare an array that will hold more than 64kb of data?
Explain spaghetti programming?
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
What are the 4 types of organizational structures?
What is the use of bitwise operator?
Can the “if” function be used in comparing strings?
Can we use visual studio for c?
explain how do you use macro?