It seems it's your homework... See this forum rules... ;)
Some tips:
1. the scanner (lexical analyser) works "before" preprocessor so your 1st statement is wrong...
2. The C preprocessor is a one-pass text processor...
ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,234
Solved Threads: 348
>And my earlier query of why
#define int float
>is still not clear...
You are substituting in your code, every wordint for the word float.
That's all.
So, what happens when for example you write?
float main(void)
It doesn't work properly, correct? Because main should return an int.
Aia
Nearly a Posting Maven
2,392 posts since Dec 2006
Reputation Points: 2,224
Solved Threads: 218