我在C中以传统的声明方式声明了函数pow
但是,函数的输出是不正确的.我不需要在这里包含math.h,因为我声明函数和它的对象代码已经存在.这是我的代码:
#include<stdio.h>
double pow(); //traditional declaration doesnt work, why??
int main()
{
printf("pow(2, 3) = %g", pow(2, 3));
return 0;
}
上面的输出是1,而它应该是8.请帮我.