Contact: aviboots(AT)netvision.net.il
43,918 questions
57,322 answers
573 users
#include <stdio.h> int main() { int a = 5; float b = 3.2f; double c = 10.75; double sum = a + b + c; // all promoted to double printf("Sum = %.2f\n", sum); return 0; } /* run: Sum = 18.95 */