gpt4 book ai didi

c++ - 表达式的数学定义结果

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:18:59 24 4
gpt4 key购买 nike

数学定义的结果是什么意思?

引用 5/4 的话:

If during the evaluation of an expression, the result is not mathematically defined or not in the range of representable values for its type, the behavior is undefined.

最佳答案

此语句后有一个注释,其中提供了一些类型的示例:

[ Note: most existing implementations of C++ ignore integer overflows. Treatment of division by zero, forming a remainder using a zero divisor, and all floating point exceptions vary among machines, and is usually adjustable by a library function. —end note ]

关于c++ - 表达式的数学定义结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24008896/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com