【发布时间】:2020-05-03 12:02:38
【问题描述】:
这个问题可能很愚蠢。
C standard:(referred to here as argc and argv, though any names may be used, as they are local to the function in which they are declared)
变量 argc 和 argv 的 main 函数的 localness 与更改它们的名称有什么关系? — 我知道它们的名称可以更改 — 我不理解标准中关于变量局部性的声明。请帮帮我。
【问题讨论】:
-
想象一下,您将不得不
#include <stdarguments.h>并使用 global 外部_Argc和_Argv符号来访问参数。