krishna chaitanya


{ City } tirupati
< Country > india
* Profession * student
User No # 72768
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 2
Users Marked my Answers as Wrong # 3
Questions / { krishna chaitanya }
Questions Answers Category Views Company eMail




Answers / { krishna chaitanya }

Question { iGate, 7322 }

how to swap all the values without using temporary variable.
tha values r a = 20, x=60 and p=2.


Answer

x=x^a;
a=x^a;
x=a^x;

x=x^p;
p=x^p;
x=p^x;

Is This Answer Correct ?    2 Yes 3 No