局部性与更改argc和argv的名称有什么关系?

问题描述 投票:0回答:1

这个问题可能很愚蠢。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)变量argcargvmain函数的localness与更改其名称有什么关系? —我知道它们的名称可以更改—我不理解标准中关于变量局部性的声明。请帮助我。

c local argv argc
1个回答
0
投票
“局部性”表示发生在“任何”范围内的事物不会影响世界其他地区。就函数参数的名称而言,这些名称不会暴露给函数外部。公开的内容(在不同程度上取决于实现和系统标准)是功能签名(即原型)。
© www.soinside.com 2019 - 2024. All rights reserved.