fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(int argc, const char * argv[]){
  4.  
  5. int ngenes = 46341;
  6.  
  7. float *v = (float*) calloc(ngenes * (ngenes - 1)/2, sizeof(float));
  8. if(v) printf("Allocation succeeded\n");
  9. free(v);
  10.  
  11. ngenes++;
  12.  
  13. v = (float*) calloc(ngenes * (ngenes - 1)/2, sizeof(float));
  14. if(v) printf("Allocation succeeded\n");
  15. free(v);
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 4204KB
stdin
Standard input is empty
stdout
Standard output is empty