- 论坛徽章:
- 0
|
回复 20# 雨过白鹭洲
5. If the declaration of an identifier for a function has no storage-class specifier,its linkage
is determined exactly as if it were declared with the storage-class specifier extern.If
the declaration of an identifier for an object has file scope and no storage-class specifier,
its linkage is external.
这段话是从哪摘录的? 是《the c programming language》吗?
大体理解是
a.如果在函数里声明的标示符,没有存储类型说明符的话,该标示符就相当于extern 声明的标示符
b.如果在文件作用域里声明的标示符,没有存储类型说明符的话,该标示符也相当于extern 声明的标示符
是这么翻译的吗?
如果是按上面的理解在一个函数里也可以这么声明,如:
void func ()
{
int i;
int i;
}
这肯定会报错的 我试过 |
|