fork(2) download
  1. #include <iostream>
  2. #include <string.h>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9. const int TAB_SIZE = 2000000;
  10. int * tab = new int[TAB_SIZE];
  11. memset(tab, -1, sizeof(int) * TAB_SIZE);
  12. printf("Adres %u dwie przykladowe wartosci: %d %d\n",(unsigned int)tab, tab[5], tab[100]);
  13. delete [] tab;
  14. tab = new int[TAB_SIZE];
  15. printf("Adres %u dwie przykladowe wartosci: %d %d\n",(unsigned int)tab, tab[5], tab[100]);
  16. delete [] tab;
  17. return 0;
  18. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Adres 1435832328 dwie przykladowe wartosci: -1 -1
Adres 1435832328 dwie przykladowe wartosci: 0 0