标签:1.0 nbsp printf math.h main sqrt int std color
/* isfinite example */ #include <stdio.h> /* printf */ #include <math.h> /* isfinite, sqrt */ int main() { printf ("isfinite(0.0) : %d\n",isfinite(0.0)); printf ("isfinite(1.0/0.0) : %d\n",isfinite(1.0/0.0)); printf ("isfinite(-1.0/0.0) : %d\n",isfinite(-1.0/0.0)); printf ("isfinite(sqrt(-1.0)): %d\n",isfinite(sqrt(-1.0))); return 0; }
输出
isfinite(0.0) : 1 isfinite(1.0/0.0) : 0 isfinite(-1.0/0.0) : 0 isfinite(sqrt(-1.0)): 0
标签:1.0 nbsp printf math.h main sqrt int std color
原文地址:https://www.cnblogs.com/sea-stream/p/10896938.html