Hi,
I created *.c file in VC++6.0 and pasted the follwing code. it is not compiling. but the same code compiling with *.cpp file in the same VC++.
#include <stdio.h>
const int MAX_LENGTH = 100;
struct CAR
{
char petName[MAX_LENGTH];
int maxSpeed;
int currSpeed;
};

void main()
{
struct CAR myCar;
}

:error C2057: expected constant expression
:error C2229: struct 'CAR' has an illegal zero-sized array