Expected expression before '=' token in C

前端 未结 2 1244
既然无缘
既然无缘 2021-01-27 10:06

Though the pre processor assigns i = 3.14159265. When i compile it, gives an error saying expected an expression before \'=\' token what and why is that ?

#incl         


        
2条回答
  •  别那么骄傲
    2021-01-27 10:55

    You don't need the '=' when you use the define keyword. Including it will include the '=' in the definition.

    #define PI 3.14159265
    

提交回复
热议问题