INF: C4040 May Occur on Declaration of Huge Array

ID Number: Q34170

4.00 5.00 5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

In Microsoft C versions 5.0, 5.1, 6.0, 6.0a, 6.0ax, and C/C++ version

7.0, the following compiler warning may occur on the declaration of a

huge array if the array is not declared globally or statically:

C4040 near/far/huge on identifier ignored

A huge or far array only can be declared at the global (or static)

level because local (auto) variables are allocated on the stack and

cannot be far or huge.

To ensure that your arrays are allocated as huge or far arrays,

declare them at the global level or declare them with the static

storage class.

Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax 7.00