Intel Corporation

  www.intel.com
Work in HR? Unlock Free Profile

Intel Corporation Software Engineer Interview Question

I interviewed in Santa Clara, CA and was asked:
"How can you exchange the value of two variables without using a third variable?"
Add Tags [?]
Answer

Part of a Software Engineer Interview Review - one of 1,352 Intel Corporation Interview Reviews

Answers & Comments

5
of 5
votes
x = x + y
y = x - y
x = x - y
- Interview Candidate on Mar 22, 2011
This post has been removed. Please see our Community Guidelines or Terms of Service for more information.

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.