首页 > 试题广场 >

指出以下哪些定义是错误的。 (1)#define pi

[问答题]
指出以下哪些定义是错误的。
(1)#define pi.3.14
(2)#define s 322;
(3)#define str "string"
(4)#define "b" 100
推荐
宏命令不能以分号结尾,宏标识符不能是字符串。上述宏定义中错误的有(2)和(4)。
发表于 2018-05-07 15:03:35 回复(0)