Here's the code:
#include<iostream.h>
int test();
int main()
{
cout<<test();
return 0;
}
int test()
{
int a=1;
a==1? return 1: return 0;
}
Could anyone please help me by telling me why VC++ 6.0 rejects this piece of programming code? Is the line" a==1? return 1: return 0;" grammatically wrong? Thank you very much in advance!