fork download
  1. #include <stdio.h>
  2. #include <malloc.h>
  3.  
  4. int main()
  5. {
  6. int i;
  7. int *c;
  8. c=(int *)calloc(sizeof(int),2);
  9. for(i=0;i<4;i++)
  10. c[i]=i;
  11. for(i=0;i<4;i++)
  12. printf("%d\n",c[i]);
  13. return 0;
  14. }
Success #stdin #stdout 0s 2140KB
stdin
Standard input is empty
stdout
0
1
2
3