jump to navigation

how to sawp 2 varialbles without temp variable? October 3, 2006

Posted by essamabdelaziz in Uncategorized.
trackback

In apervious interview after graduation
I have been asked aquestion and I didn’t answer it
So there is the question and answer

how to sawp 2 varialbles without temp variable?

answer….
say x,y

x=x+y;
y=x-y;
x=x-y;

did you see the answer is so easy but you must concentrate in your interviews and don’t be afraid even you didn’t accept at least you successed in gaining an interview skills

Comments»

No comments yet — be the first.