c++ - C语言函数实际声明类型为int,接受返回值类型为float,最终返回结果以什么为准?
怪我咯
怪我咯 2017-04-17 14:41:15
0
4
644
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(4)
大家讲道理
  1. I typed it myself and the result was 5.00. The answer is wrong. It may be the difference between compilers. I use gcc;

  2. In addition, it is recommended not to use mobile phone software to answer these basic questions. They do not know where to find the questions and answers. It is recommended to directly look for the C language final examination paper from a prestigious school and do it

PHPzhong

I debugged it with the C++ compiler and found that the answer is 5.
There are many explicit or implicit type conversions in this program. The topic is the same as the link description in this article

巴扎黑

I think the answer is wrong, why don’t you write a program yourself and try it

Ty80

The answer is wrong, I personally think

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template