avatar
b*p
1
写一个函数,判断非浮点数value是有符号数还是无符号数。
这个题目是不是有点问题啊?depend on definition 吧?
avatar
m*e
2
trick question?haha

【在 b****p 的大作中提到】
: 写一个函数,判断非浮点数value是有符号数还是无符号数。
: 这个题目是不是有点问题啊?depend on definition 吧?

avatar
N*y
3
? If there's no type given, how can this code be written in C/C++?

【在 m*****e 的大作中提到】
: trick question?haha
avatar
kb
4
add the largest value of signed value. If it is unsigned, it should be
positive, otherwise, negative. This requires the input more than 0 and less
than max value of signed value. Other cases are easy to check.
avatar
P*f
5
I just wonder how to present the value if we donot know the specific "signed
" value. I mean you at least have to use "int" or "unsigned int" to
represent the parameter.

add the largest value of signed value. If it is unsigned, it should be
positive, otherwise, negative. This requires the input more than 0 and less
than max value of signed value. Other cases are easy to check.

【在 kb 的大作中提到】
: add the largest value of signed value. If it is unsigned, it should be
: positive, otherwise, negative. This requires the input more than 0 and less
: than max value of signed value. Other cases are easy to check.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。