Hi,
I am sure that the size of c style arrays must be known at compile tim
but the code below compiles. I am using g++ 4.2.4 and really confused!
Code:int main(){ int N = 5; int x[N]; x[2] = 3; }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Threaded View
|
Click Here to Expand Forum to Full Width |