Defining constant operation without resolving it at compilation time

后端 未结 0 1338
醉梦人生
醉梦人生 2021-01-23 04:29

I have the following directive in my C code:

#define SCALE 156/10

It is used to multiply a value from a sensor. As I work only with integers, the operation is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题