C语言速学教程(入门到精通)
C语言怎么学习?C语言怎么入门?C语言在哪学?C语言怎么学才快?不用担心,这里为大家提供了C语言速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
In this section we will see, how can write multiline macros in C. We can write multiline macros like functions, but for macros, each line must be terminated with backslash ‘\’ character. If we use curly braces ‘{}’ and the macros is ended with ‘}’, then it may generate some error. So we can enclose the entire thing into parenthesis.
Please check the following program to get the idea about multiline macros.
#include<stdio.h> #define PRINT(x, str) ({\ printf("The number %d", x);\ printf(" is ");\ printf(#str);\ printf("<p>");\ }) int main() { int x = 10; if(x % 2 == 0){ PRINT(x, EVEN); } }</p></stdio.h>
The number 10 is EVEN
13万字C语言保姆级教程(深入):立即学习
在学习笔记中,你将探索c语言的核心概念和高级技巧!
已抢7337个
抢已抢95475个
抢已抢14942个
抢已抢52732个
抢已抢195934个
抢已抢87512个
抢