Hi,
Out of curiosity and experimenting with ANSI C constructs ,I would like to know any means by which we can ignore the empty braces for the conditional statements in C programming??? Does C allow us to do this.
Refer below the sample C code for discussion
int main()
{
if() /// there should no error while writing this, empty parathensis..
{
printf("your if is without parameters...");
}
else
{
printf("if block ignored....");
}
return 0;
}
How to implement the above code in C successfully without any errors(compile time/Run time)????? By any means I want to implement above style.
Thanks in advance....