adspace


swap two no without using third variable

Answer Posted / ankit

if there are two no as int a,b;
then we could swap these two no's without help of third no
as........>>>>>>
EX-->
int a,b;
a=a+b;
b=a-b;
a=a-b;

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category