How to swap two variables, without using third variable ?

Answer Posted / suseela

for ex x=10,y=20
x=x+y=30(i.e 10+20)
y=x-y=10(i.e 30-20)
x=x-y=20(i.e 30-10)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Design an implement of the inputs functions for event mode

2974


could you please send the program code for multiplying sparse matrix in c????

3087


write a program for area of circumference of shapes

2044


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

2345


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

512






how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3136


Write a routine to implement the polymarker function

4399


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

3127


What is data _null_? ,Explain with code when u need to use it in data step programming ?

2834


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

3868


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.

2149


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3041


Sir... please give some important coding questions asked by product companies..

1811


What is full form of PEPSI

1886


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4161