www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/19/09:10:39

Message-ID: <330B9EDB.79D7@post.comstar.ru>
Date: Wed, 19 Feb 1997 16:46:19 -0800
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: zager AT post DOT comstar DOT ru
MIME-Version: 1.0
To: DJGPP Mail List <djgpp AT delorie DOT com>
Subject: Variable length array ?

Hi.
Recently, I have read GCC documentation at the very first time ;)
An exellent !!! ;)
So, now I have a lot of new possibilitys and ... a lot of new questions
!
Just 1st about variable lenght arrays (VLA) :

void foo(void)
{
  int i=0;
  int arr[i];

  for(i=0;i<10;i++)
   {
     arr[i]=i;
   }
}

I think, very symple code ;) (I never run it)
So, my question is - may I use VLA this way : dynamicaly increase the
array's size ?

-- 
Regards,
Dim Zegebart,
Moscow Russia.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019