ungureanuvladvictor

Untitled

Nov 28th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. int main() {
  2. static a = 2;
  3. int z = 3;
  4. {
  5. int x = 3;
  6. x++;
  7. z++;
  8. //aici x e out of scope, nu mai e folosit de aici in colo si compilatorul il arunca
  9. }
  10. z++;
  11. //aici z device out of scope
  12. //code
  13. //code
  14. //aici devine a out of scope. daca il declari static el sta pe toata durata programului
  15. return 0
  16. }
Advertisement
Add Comment
Please, Sign In to add comment