Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Local variable » ?

Definition 19.4 Primary & Middle School Computer Science · Chapitre 19 — Functions

A local variable is a variable created inside a function: a parameter, or a name assigned in the body. It exists only while the call runs, and the rest of the program cannot see it.

Local boxes appear when the call starts and disappear when it returns. Only the return value, 12, survives.
Local boxes appear when the call starts and disappear when it returns. Only the return value, 12, survives.
Lire dans le chapitre →