H
Huangsyx
#include <stdio.h>
int main(void)
{
int a = 1;
#if 1 == a
puts("Success");
#else
puts("Failure");
#endif
return 0;
}
I've Compile this code in Visual C++ 6.0 and MingW.
It' Ok, but puts"Failure".
Why?
Alsoly, I've Compier this code in Turbo C 2.0. The TC(Turbo C)2.0 report an Error."Constant expression required in function main".
What the definination of "constant of expression"?
I am a beginner.
int main(void)
{
int a = 1;
#if 1 == a
puts("Success");
#else
puts("Failure");
#endif
return 0;
}
I've Compile this code in Visual C++ 6.0 and MingW.
It' Ok, but puts"Failure".
Why?
Alsoly, I've Compier this code in Turbo C 2.0. The TC(Turbo C)2.0 report an Error."Constant expression required in function main".
What the definination of "constant of expression"?
I am a beginner.