[Dev-C++] Invalid initializer for an array
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Richard P. E. <ev...@ma...> - 2000-10-10 03:00:58
|
Why do I get an "invalid initializer" message for the following line in my program? int distribution[5] = (0); It seems the only thing that works to initialize an array is a "for" statement. Does anyone have an answer? The above line is by the book and should work. Or is this a software bug? Some how I doubt that. Richard Evans |