Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Internal linkage?

Definition 3.10 University Computer Science — Year 1 · Capítulo 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.
Ler no capítulo →