#include<stdio.h>int main(){float a[]={13.24,1.5,1.5,5.4,3.5};float *j;j=a;j=j+4;printf("%f %f %f\n",j,*j,a[4]);return 0;}
Standard input is empty
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
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!