-5
#include <stdio.h>
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int i;
i = 2;
printf("%d %d %d\n", i,pow(i,2),pow(i,3));
return 0;
}
/* 出力は2,4,8と予想されますが、出力は2 0 1074790400です。理由はどうですか? */なぜPow関数は予期しない値を返しますか?
捕虜は、二重なので、uは%F –