Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Internal linkage » ?

Definition 3.10 University Computer Science — Year 1 · Chapitre 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.
Lire dans le chapitre →