想试一下C语言宏定义中的#
#include<stdio.h>
#define printDBL( exp ) printf( #exp = "%d", exp )
printDBL( 4 * 5 );
报错为
error: expected declaration specifiers or '...' before string constant
printDBL( 4 * 5 );
^
note: in definition of macro 'printDBL'
#define printDBL( exp ) printf( #exp = "%d", exp )
^~~
note: in definition of macro 'printDBL'
#define printDBL( exp ) printf( #exp = "%d", exp )
^~~
请问我哪里出问题了
求大神解答