int i = 3;
double d = i / (double) j;
printf("the value of %d over %d is %g", i, j, d);
if (fopen(fileName, "r") == null)
fprintf(stderr,"Cannot open file %s\n", fileName);
sprintf(buffer, "the value is %d\n", sum);
printf("the value is %d\n", d); // error -- float printed as int
scanf("%d %f", &i, &f); // read an int, then a float