Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

variable static locale

1 réponse
Avatar
pasde.hcyrano.spam
bonsoir,

une variable static locale reste bien locale a la methode ?

void maclasse::methode1 {
static int a = 0;
.../...
}

void maclasse::methode2 {
static int a = 0;
.../...
}

les 2 variables a n'interfere pas?
--
Bruno Causse
http://perso.wanadoo.fr/othello

1 réponse

Avatar
Fabien LE LEZ
On Sat, 3 Jun 2006 23:45:03 +0200, (Bruno
Causse):

une variable static locale reste bien locale a la methode ?


Oui.