short answer: static arrays are allocated when the function is called, at which point your variable is undefined. so the construct is illegal.
if you want to dynamically allocate arrays, you need to use malloc() along with a corresponding free()
Reputation Points: 2143
Solved Threads: 178
Posting Maven
Offline 2,567 posts
since Feb 2008