全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Internal linkage?

Definition 3.10 University Computer Science — Year 1 · 第 3 章 — Functions and the Call Stack

A function or a variable declared at file scope with static has internal linkage: its name is local to its file, and the linker never matches it with a name of another file. Without static, a file-scope name has external linkage: it is visible to the linker, as the global symbols of Chapter 1.

Lifetimes along a run. Global and static variables exist from start to end. An automatic variable exists once per call (two calls, two separate lives), a block’s local only inside its block. An address returned from a call outlives the variable it names.
Lifetimes along a run. Global and static variables exist from start to end. An automatic variable exists once per call (two calls, two separate lives), a block’s local only inside its block. An address returned from a call outlives the variable it names.
在原文中阅读 →