Does ansi C place a limit on the number of external variables in a program?

后端 未结 3 453
刺人心
刺人心 2021-01-24 22:19

By external variable I mean a variable declared with the extern modifier (and defined elsewhere in the program).

I\'ve been told of this limitation, and couldn\

3条回答
  •  梦毁少年i
    2021-01-24 22:35

    Yes, there is a minimal limit that every compiler should support.

    In this case, every compiler should be able to support at least 4095 external identifiers in one translation unit (but most compilers probably support much more).

提交回复
热议问题