Intel Corporation Interview Question
527 Interview Reviews |
Back to all Intel Corporation Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Intel Corporation:
How can you exchange the value of two variables without using a third variable?
See more for this Intel Corporation Software Engineer Interview
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (2)
3 of 5 people found this helpful
y= x ^ y // y is now original x
x= x ^ y // x is now original y
// note ^ means 'xor'
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up



4 of 4 people found this helpful
by Interview Candidate:
y = x - y
x = x - y