The following lines of code does not compile:
int size=5;
char data[size];


I have running code in linux that says:

int size=5;
char data[size];
but on windows, it gives compilation error.

Can anyone suggest a solution to it?