Determine Output:
#define square(x) x*xvoid main(){ int i; i = 64/square(4); printf("%d", i);}

Determine Output:

#define square(x) x*xvoid main(){ int i; i = 64/square(4); printf("%d", i);}
Correct Answer 64

The macro call square(4) will substituted by 4*4 so the expression becomes i = 64/4*4 . Since / and * has equal priority the expression will be evaluated as (64/4)*4 i.e. 16*4 = 64

Related Questions

Comment on the following 2 C programs.
#include  //Program 1int main(){ int a; int b; int c;}#include  //Program 2int main(){ int a; { int b; } { int c; }}