"Manas Rawat" <24*0*7*
9@s*u*e*t*u*a*e*u*a*> wrote:
> #define N 10; being wrongly initialised, I think all of the above should be the correct answer, as it makes N = 10, resulting in the error in other statements as well.
The
#define
preprocessor directive, when used as
#define pattern1 pattern2
, results in all later instances of
pattern1
being replaced by
pattern2
.
In this example,
N
is not a variable, and is not being initialised, but every following use of
N
is replaced by
10;
.
You can follow this example by hand, as under test conditions, to find when the pattern
10;
now introduces a syntax error in the C code.
And because you're not under test conditions, and have access to a compiler, you could have the compiler identify invalid lines.
Hope this helps,