一个小小的关于C/C++的问题,pow(0,0)的值是多少?

问题描述:

一个小小的关于C/C++的问题,pow(0,0)的值是多少?
- 太不给面子了!0^0次方是0吗,你初中的都忘了!
数学上0^0是没有意思,但是我问的是C语言里边啊!
1个回答 分类:综合 2014-11-16

问题解答:

我来补答
结果是1
MSDN中的解释如下:
Calculates x raised to the power of y.
double pow( double x, double y );
Routine Required Header Compatibility
pow ANSI, Win 95, Win NT
Return Value
pow returns the value of x^y. No error message is printed on overflow or underflow.
Values of x and y Return Value of pow
x < > 0 and y = 0.0 1
x = 0.0 and y = 0.0 1
x = 0.0 and y < 0 INF
 
 
展开全文阅读
剩余:2000