Different answer in #define and that of a function in c/c++?

前端 未结 0 1368
滥情空心
滥情空心 2021-01-11 13:29

I want to calculate square in c. When i use #define statement i get wrong answers and when I use function I get correct. Why it is so?

#include

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