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?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Thread: Defining array with variablesThreaded View
|
Click Here to Expand Forum to Full Width |