in Programming in C recategorized by
385 views
0 votes
0 votes

Please explain the solution, whats the actual logic in questions of Preprocessor codes?

in Programming in C recategorized by
385 views

4 Comments

While compilation itself , black(a) , black(a+1) and white(a) would be replaced with

a+a*a*a+1+a+1*a+1 - a - a*a

Now a is replaced with 3 ,

3 + 3 * 3 * 3 + 1 + 3 + 1 * 3 + 1 - 3 - 3 * 3 , And then execution based on precedence and associativity is done.
1
1
Yes Program should eliminate braces during compilation. In that case precedence would get changed.
1
1
here - is before white ,it will not change whole expression of white ?

pls reply
0
0

Please log in or register to answer this question.

Related questions