阅读C代码的时候会发现在有些地方会使用#ifdef有的地方会使用#ifndef,如何区分这两个。 #ifdef表示“if the following is defined”;#ifndef表示“if the following is not defined”。 根据上面的描述可以推断下面代码会输出:”one is defined “ 1234567 #ifdef one printf("one is defined ");#endif#ifndef one printf("one is not defined ");#endif 赞微海报分享
近期评论