c99 « length « C Array Q&A

Home
C Array Q&A
1.bit
2.Byte
3.char
4.class
5.Development
6.Dimensional Array
7.dynamic
8.element
9.find
10.index
11.initialization
12.Integer
13.length
14.loop
15.memory
16.Operation
17.pointer
18.Print
19.size
20.Sort Search
21.string
22.struct
23.variable
C Array Q&A » length » c99 

1. Variable Length Array    stackoverflow.com

I would like to know how a variable length array is managed (what extra variables or data structures are kept on the stack in order to have variable length arrays). Thanks a ...

2. Variable length arrays C99 not supported in C    stackoverflow.com

In Visual Studio 2005, I'm trying to compile a .c file:

int i = 6;
int a[i];
It doesn't work, so which standard does my compiler follow?

3. C: constants, variable array length and C99    forums.devshed.com

My point was that gcc has (I believe) accepted variable length arrays for some time (as a non-standard language extension). Not just for C99. So the fact that it accepts variable length arrays tells us nothing with respect to C99. That it then complains that you're declaring a variable within a for loop (which is only permitted in C99, not C89) ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.