K
karthikbalaguru
Hi,
I came across a simple program that is written as below.
I wonder, what is the use of the statement '100;' (line number 4) ?
#include<stdio.h>
int main(void)
{
100;
printf("%d\n",50);
}
The compiler does not warn or throw any error.
It gives the correct output of 50.
I use Visual C++ 2008 Express Edition.
Where are such statements useful and does the
standard support it ? What value do those statements
add to in a program ?
Thx in advans,
Karthik Balaguru
I came across a simple program that is written as below.
I wonder, what is the use of the statement '100;' (line number 4) ?
#include<stdio.h>
int main(void)
{
100;
printf("%d\n",50);
}
The compiler does not warn or throw any error.
It gives the correct output of 50.
I use Visual C++ 2008 Express Edition.
Where are such statements useful and does the
standard support it ? What value do those statements
add to in a program ?
Thx in advans,
Karthik Balaguru