YH writes:
>
> Is the following example legal in current GCC compilation for C
> program? I thought the static array allocation can only used by a
> defined constant such as char buf[MAX_SIZE], where #define MAX_SIZE 10?
>
> void DoSomthing(int size)
> {
> char buf[size];
>
> ...... do something ....
>
> }This question should have been addresses to [EMAIL PROTECTED] Please RTFM, Section 5.13: Arrays of Variable Length ==============================.. ...... . Andrew.
