Due to server problems the website is temporarily offline! Visit http://www.smorgasbordet.com/pellesc/ to download Pelles C.
#include <stdio.h>#include <math.h>int main(int argc,char **argv){ float a; a=4/8; printf("%f\n",a); //0.000000 a=4.0/8; printf("%f\n",a); //0.500000 a=(float)4/8; printf("%f\n",a); //0.500000 return 0;}
float a=4.0/8.0;printf("%f",a);
float a=(float)4/8;printf("%f",a);