NO

Author Topic: VLA problem  (Read 3192 times)

Offline Robert

  • Member
  • *
  • Posts: 247
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