fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. float a[]={13.24,1.5,1.5,5.4,3.5};
  5. float *j;
  6. j=a;
  7. j=j+4;
  8. printf("%f %f %f\n",j,*j,a[4]);
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:8:10: error: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘float *’ [-Werror=format=]
 printf("%f %f %f\n",j,*j,a[4]);
          ^
cc1: all warnings being treated as errors
stdout
Standard output is empty