> printf("I ate %s and %d totalling %s fruit.\n", apples, bananas, apples + bananas); Gaah, that should be: printf("I ate %d and %d totalling %d fruit.\n", apples, bananas, apples + bananas);