printf语句在printf语句中调用时不会打印内置函数的答案。为什么?

时间:2018-03-08 14:15:11

标签: c function printf

我正在尝试直接在if($(this).closest('.stemValueScope').attr("data-stemValueId")==stemValueId)方法中使用pow() bult-in函数,但它无效并给我printf()结果。但是,当我第一次将此函数的答案存储在某个变量中,然后将变量放在0方法中进行打印时,它可以正常工作。那是为什么?

此程序出现故障。

printf

虽然以下是完美的。

#include <stdio.h>
#include <math.h>
#include <conio.h>
void main(void)
{
    int a=5;
    clrscr();
    printf("%d",pow(a,2));
    getch();
}

0 个答案:

没有答案