Pruthvi said:
What is the signifecance of using 0; or 1; or 100; in C code?
I think it is a NULL statement, won't do anything.
Technically, it is not a null statement. A null statement is defined by
the C standard (section 6.8.3#3) as just a single semicolon.
`0;' or `1;' or `100;' is an expression statement. When it is evaluated,
the side effects are performed (which are none in this case), and the
result is discarded. So the effect is the same as that of a null
statement.
Pls let me no any better reasons for using this in the code.
Occasionally, macros might expand to such a statement under some
condition. I see no reason for using it explicitly, though. Not
everything that is allowed is also useful.
Martin