News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

VLA problem

Started by Robert, October 05, 2005, 11:05:39 PM

Previous topic - Next topic

Robert

The following snippet for setting up a pointer to a VLA
taken from the What are Variable Length Arrays? section of

http://www.comeaucomputing.com/techtalk/c99/

int main()
{
int n = 99
static int (*p)[n];
}

generates

error #2084: Invalid storage class 'static' for 'p' with type ' int
  • *'.

    Robert Wishlaw

    Robert Wishlaw