NO

Author Topic: VLA problem  (Read 2286 times)

Offline Robert

  • Member
  • *
  • Posts: 196
VLA problem
« on: October 05, 2005, 11:05:39 pm »
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