Puzzle E15

Intermediate Result

What is displayed by this program?

#include <stdio.h>

/* Puzzle E15 -- sneaky types */
int main()
{
  int a = 9;
  int b = 2;
  double sum;
  
  sum = a/b;  /* danger! */
  
  printf("The sum: %f\n", sum );   
  return 0;
}


Previous Page        Answer         Next Page         Home