Skip to content

Instantly share code, notes, and snippets.

@Phitherek
Created March 20, 2015 19:25
Show Gist options
  • Save Phitherek/078dcfd9066beb214261 to your computer and use it in GitHub Desktop.
Save Phitherek/078dcfd9066beb214261 to your computer and use it in GitHub Desktop.
Big array in C++
#include <iostream>
#include <cstdlib>
using namespace std;
int main() {
int* tab;
tab = new int[10000000];
for(int i = 0; i < 10000000; i++) {
tab[i] = 0;
}
delete[] tab;
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment