Garmin
3.4 of 5 216 reviews
www.garmin.com Olathe, KS 5000+ Employees

Garmin Software Engineer Interview Question

I interviewed in Kansas City, MO and was asked:
"Flip a bit in a uint32 using C."
Add Tags [?]
Answer Flag Question

Part of a Software Engineer Interview Review - one of 136 Garmin Interview Reviews

Answers & Comments

0
of 1
vote
If you don't know how to do this, you didn't go to computer science 101 class.
- Interview Candidate on Mar 10, 2012 Flag Response
0
of 0
votes
For those not familiar with C, I believe teh following should work:

//This is using the Exclusive Or(XOR) operator
unsigned flipBit ( unsigned x, unsigned bit )
{
    return x ^ (1UL << bit);4.
}
- Anonymous on Aug 2, 2012 Flag Response
0
of 0
votes
Reposted as I left a 4. in there that should not be.

For those not familiar with C, I believe the following should work:

//This is using the Exclusive Or(XOR) operator
unsigned flipBit ( unsigned x, unsigned bit )
{
    return x ^ (1UL << bit);
}
- Anonymous on Aug 2, 2012 Flag Response

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.

Glassdoor is your free inside look at Garmin interview questions and advice. All interview reviews posted anonymously by Garmin employees and interview candidates.