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

后端 未结 3 406
刺人心
刺人心 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条回答
  •  失恋的感觉
    2021-01-24 22:25

    My understanding is that the language does not impose a maximum limitation. Compilers and platforms would impose a limit.

    Compilers may restict the quantity due to the memory they want to devote to tracking and translating these.

    The platform always has limited space for variables.

提交回复
热议问题