S
sangeeta chowdhary
Hi,
I tried code : -
#include<stdio.h>
int main()
{
#ifdef NOTE
/* unterminated comment
int a;
a=10;
#else
int a;
a=20;
#endif
printf("%d\n",a);
return 0;
}
ifdef portion will not compile as condition is false,but when program
is compiled it is displaying
error - unterminated comment,now how this error is being displayed,who
is checking for these
kind of errors?
I tried code : -
#include<stdio.h>
int main()
{
#ifdef NOTE
/* unterminated comment
int a;
a=10;
#else
int a;
a=20;
#endif
printf("%d\n",a);
return 0;
}
ifdef portion will not compile as condition is false,but when program
is compiled it is displaying
error - unterminated comment,now how this error is being displayed,who
is checking for these
kind of errors?