How to swap two variables, without using third variable ?

Answer Posted / somasekhar

Ans is :

a=a*b;
b=a/b;
a=a/b;

Is This Answer Correct ?    536 Yes 185 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Develop a routine to reflect an object about an arbitrarily selected plane

2986


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

2217


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2253


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2856


Cluster head selection in Wireless Sensor Network using C programming language.

3099






What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

3701


Write a routine to implement the polymarker function

4373


write a simple calculator c program to perform addition, subtraction, mul and div.

3135


Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

3843


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

2319


#include int main(void) { int a=4, b=2; a=b<>2 ; printf("%d",a); return 0; }

1062


Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

2671


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2134


how to test pierrot divisor

2249


Design an implement of the inputs functions for event mode

2955