Type of #define variables

后端 未结 7 2191
一个人的身影
一个人的身影 2020-11-27 17:33

If I have:

#define MAXLINE    5000

What type is MAXLINE understood to be? Should I assume it is an int? Can I test it somehow?

7条回答
  •  粉色の甜心
    2020-11-27 18:12

    We call this macro or preprocessor, which is used to string-replace source file contents. Read this: https://en.wikipedia.org/wiki/C_macro

提交回复
热议问题