rec.c
来自「linux下的C语言开发」· C语言 代码 · 共 24 行
C
24 行
/*-*//******************************************************** * Question: The following program fails to compile * * because we didn't define the variable "number." * * But "number" is a parameter to a macro, and shouldn't* * need to be defined. What's going on? * ********************************************************//*+*/#include <stdio.h>#define RECIPROCAL (number) (1.0 / (number))int main(){ float counter; /* Counter for our table */ for (counter = 0.0; counter < 10.0; counter += 1.0) { printf("1/%f = %f\n", counter, RECIPROCAL(counter)); } return (0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?