|
|
|
|
|
by monocasa
3081 days ago
|
|
It was a uint32_t in this case (we do a bunch of ARM stuff mainly so without any other context, that's what 'word' means to me). And yeah, exactly, 1000 to 0001. We had an environment setup with a bunch of test cases and a stub function to fill in. When you come in, push the button, everything compiles, but most of the tests fail because the function is just uint32_t flip_bit_endianess(uint32_t word) {
return word;
}
I think there's actually a couple passing tests initially that flip to the same thing.And like I said, this is for an experienced embedded software position. Ironically enough I care less about showing that you can code in junior positions. Those are more "does it seem like you can learn?" |
|
Where would this be used in the real world?