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
Is c procedural or object oriented?
shorting algorithmS
Explain output of printf("Hello World"-'A'+'B'); ?
What is string length in c?
What are disadvantages of C language.
Is boolean a datatype in c?
Explain what is the difference between functions abs() and fabs()?
Is null always defined as 0(zero)?
How would you obtain the current time and difference between two times?
What is hungarian notation? Is it worthwhile?
What does the message "automatic aggregate intialization is an ansi feature" mean?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
How can I remove the leading spaces from a string?
How macro execution is faster than function ?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.