declaration of array

LLeweLLyn Reese llewelly@lifesupport.shutdown.com
Fri Dec 27 20:00:00 GMT 2002


Baraclese <webmaster@baraclese.com> writes:
[snip]
> void a(const int b)
> {
> 	int values[b];	// b is not known at compile time
> }
> 
> my question is, is this ansi c++ code or is it a feature of gcc?

An extension. See:
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Variable-Length.html#Variable%20Length
[snip]



More information about the Gcc-help mailing list