b****p 发帖数: 13 | 1 写一个函数,判断非浮点数value是有符号数还是无符号数。
这个题目是不是有点问题啊?depend on definition 吧? | m*****e 发帖数: 4193 | 2 trick question?haha
【在 b****p 的大作中提到】 : 写一个函数,判断非浮点数value是有符号数还是无符号数。 : 这个题目是不是有点问题啊?depend on definition 吧?
| N*********y 发帖数: 105 | 3 ? If there's no type given, how can this code be written in C/C++?
【在 m*****e 的大作中提到】 : trick question?haha
| kb 发帖数: 73 | 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. | P*****f 发帖数: 2272 | 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.
|
|