Is there any optimization possible for function to reverse the order of bytes in an int32?

后端 未结 0 2047
無奈伤痛
無奈伤痛 2020-11-22 08:51

Someone I know was recently asked this question in a coding interview. They were asked to write a function reverseBytes below such that if you pass it 0xa

相关标签:
回答
  • 消灭零回复
提交回复
热议问题