2021年5月1日星期六

Output of this program is 64. Can someone explain how?

#define sqr(a) a*a  int main()  {  int i;  i = 64 / sqr(4); //answer of this expression is 64.  printf("%d", i);  return 0;  }    

In this code the output is 64 and according to the rules expression i = 64 / sqr(4) should be solved as i = 64 / 4*4 which gives result 4 but the output of the program is 64. so if anyone can understand it, so explain it in commentbox. Thanks

https://stackoverflow.com/questions/67351482/output-of-this-program-is-64-can-someone-explain-how May 02, 2021 at 06:44AM

没有评论:

发表评论