简体   繁体   中英

Use scanf to set macro

是否可以使用scanf为一个名为SIZE#define SIZE )的宏替换赋值,但不保存另一个变量中scanf附带的值?

Macros are evaluated at pre-compilation by pre-compiler scanf is evaluated by the compiler. Compiler doesn't understand macros. So no.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM