我们如何使用“你”算术运算? [英] How do we use "u" in an arithmetic operation?

查看:105
本文介绍了我们如何使用“你”算术运算?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Int main()

{

签名a = 6u + -16;

Printf(%d,a);

}



这个你在这里是什么意思?

虽然这导致了正常的算术运算。



我尝试了什么:



我在google上查了但是没过找不到与此相关的任何内容。谢谢。

解决方案

Quote:

我们如何在一个中使用u算术运算?



学习使用搜索引擎。

integer literal - cppreference.com [ ^ ]

c - 什么'你的意思是一个数字? - 堆栈溢出 [ ^ ]


Int main ()
{
Signed a = 6u + -16;
Printf ("%d", a);
}

What does this "u" mean here?
It results into normal arithmetic operation though.

What I have tried:

I checked on google but did not find anything related to this. Thanks.

解决方案

Quote:

How do we use "u" in an arithmetic operation?


Learn to use search engines.
integer literal - cppreference.com[^]
c - What does 'u' mean after a number? - Stack Overflow[^]


这篇关于我们如何使用“你”算术运算?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆