Portée bloc prev
next

int i = 3; // Portée globale static int j = 4; // Portée fichier

void() { cout << i << endl; int i = 5; { int i = 1994; cout << i << endl; } cout << i << endl; }


Ch. Tronche - Année 96-97 - Page 34