原来还有#elif,代码来了!
文件: if_elif.c
#include <stdio.h> #define A -1 int main(int agrc, char **argv) { #if A > 0 printf("A > 0\n"); #elif A < 0 printf("A < 0 \n"); #else printf("A == 0 \n"); #endif return 0; }
本文出自 “自己简单总结” 博客,请务必保留此出处http://2714254.blog.51cto.com/2704254/1683799
原文地址:http://2714254.blog.51cto.com/2704254/1683799