Guest User

Untitled

a guest
Nov 14th, 2014
220
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a[10];
  8.     for(int i=0; i<50; i++)
  9.         cout << a[i] << endl;
  10.     //ovoj loop ili kje krashne ili kje ti nedefinirani vrednost (ne mora da bidat 0)
  11.     //ako namesto 50 stavis 500000, skoro sigurno kje krashne
  12.     int b[10];
  13.     for(int i=0; i<50; i++)
  14.     {
  15.         b[i] = i;
  16.         cout << b[i] << endl;
  17.     }
  18.     //ovoj loop nekogas kje raboti, nekogas ne. problemot so out-of-bounds index errori e sto nekogas rabotat kako sto treba, pa greskata tesko se naogja
  19. }
RAW Paste Data