fork download
  1. #include <stdio.h>
  2. #define SIZE 3
  3.  
  4. int main()
  5. {
  6. float x[SIZE];
  7. float *fp;
  8. int i;
  9.  
  10. for(i=0; i<SIZE; i++)
  11. //{
  12. x[i] = 0.5*(float)i;
  13. //}
  14.  
  15. for(i-0; i<SIZE; i++)
  16. //{
  17. printf(" %d %f \n", i, x[i]);
  18.  
  19. //}
  20.  
  21. fp=x;
  22.  
  23. for(i=0; i<SIZE; i++)
  24. //{
  25. printf(" %d %f \n", i, *(fp+i));
  26. //}
  27. return 0;
  28. }
  29.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
cc1: warnings being treated as errors
prog.c: In function ‘main’:
prog.c:15: error: statement with no effect
stdout
Standard output is empty