如何使用按位运算符乘以两个整数

编程入门 行业动态 更新时间:2024-10-25 16:23:32
本文介绍了如何使用按位运算符乘以两个整数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何在C 语言中使用按位运算符多次使用两个整数。请尽早回复

How to mulitply two integer numbers using bitwise operators in C language.Please reply as early as possible

推荐答案

< SA ********* @ yahoo>写道: <sa*********@yahoo> wrote : 如何使用C语言中的按位运算符多次使用两个整数。请尽早回复 How to mulitply two integer numbers using bitwise operators in C language.Please reply as early as possible

模拟你在小学 学校学习十进制数的方法。

Emulate the way you learned to do it for decimal numbers in elementary school.

sa ********* @ yahoo 写道: 如何使用按位顺序多个两个整数C语言的操作员。请尽早回复 How to mulitply two integer numbers using bitwise operators in C language.Please reply as early as possible

你知道如何总结它们,对吧?好吧看看这个: 3 * 4 == 3 + 3 + 3 + 3 3 * 4 == 4 + 4 + 4

You do know how to sum them, right? Well check this out: 3*4 == 3+3+3+3 3*4 == 4+4+4

On Sun,2003年9月21日14:03:51 GMT,Aggro< sp ********** @ yahoo。 com> 写道: On Sun, 21 Sep 2003 14:03:51 GMT, Aggro <sp**********@yahoo> wrote: sa ********* @ yahoo写道: sa*********@yahoo wrote: 如何多个使用C语言中的按位运算符的两个整数。请尽早回复 How to mulitply two integer numbers using bitwise operators in C language.Please reply as early as possible

你知道如何总结它们,对吗?好吧看看这个: 3 * 4 == 3 + 3 + 3 + 3 3 * 4 == 4 + 4 + 4

You do know how to sum them, right? Well check this out:3*4 == 3+3+3+33*4 == 4+4+4

嗯,这很容易。但是+不是一个按位运算符。 仅使用按位运算符添加是这个问题的难点。 这个问题。 尼克。

Well that''s the easy bit. However + is not a bitwise operator. Adding using only the bitwise operators is the hard bit of this problem. Nick.

更多推荐

如何使用按位运算符乘以两个整数

本文发布于:2023-11-30 01:37:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1648289.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:整数   如何使用   运算符   两个

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!