The phrase should have been "compiler constant" RobR
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Rob Richardson Sent: Tuesday, August 03, 2010 1:14 PM To: [email protected] Subject: RE: [c-prog] array initialization Since you have to rebuild this code every time you change the sampleTest value, you might as well use a copiler constant instead of a constant whose value is not known until run time: #define SAMPLE_SIZE 1 Vector3D randomArray[SAMPLE_SIZE]; RobR
