如何使用按位运算符从数字中提取最后两位数字,并在 %100 和 /100 的简短工作中从数字中删除它们,但按位
我必须使用 uint8_t 类型从 uint64_t 类型给定值以大端格式创建一个数组。 我试图一次又一次地提取最后两位数字,并在数组中修复,但禁止使用模数和除法运算符,只能使用按位运算符。
I have to create an array using uint8_t type from uint64_t type given value in big endian format .
I am trying to extract last two digits again and again , and fix in array but use of modulo and division operator forbidden only bitwise operator can be used.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论