int a=-9,b=4;cout<<a/b;
时间: 2024-05-27 08:12:12 浏览: 11
The output will be -2.
Explanation:
When we divide -9 by 4, we get -2 as quotient and 1 as remainder. Since we are using integer division here, the remainder is not considered and only the quotient is returned. Therefore, the output is -2.
相关推荐
![exe](https://img-home.csdnimg.cn/images/20210720083343.png)
![](https://img-home.csdnimg.cn/images/20210720083646.png)
![](https://img-home.csdnimg.cn/images/20210720083646.png)
![jpg](https://img-home.csdnimg.cn/images/20210720090814.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)