hugeval.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 28 行
C
28 行
#include <math.h>static const double zero = 0.0;static const double pone = 1.0;static const double none = -1.0;static const double pinf = 1.0 / 0.0;static const double ninf = -1.0 / 0.0;intmain (){ if (pinf != pone/zero) abort (); if (ninf != none/zero) abort ();#ifdef HUGE_VAL if (HUGE_VAL != pinf) abort (); if (-HUGE_VAL != ninf) abort ();#endif exit (0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?