conditional compilation, preprocessor expression

#if something == 0
int some=0;
#endif

main(){
int thing = 0;
printf(“%d %dn”, some ,thing);
}
Answer
0 0
Explanation
This code is to show that preprocessor expressions are not the same as the ordinary expressions. If a name is not known the preprocessor treats it to be equal to zero.

Leave a Reply

Your email address will not be published. Required fields are marked *