/* primer 29.c - casting ili koercija tipova */ #include main() { int i, j; double x, y, z, t; i = 5/2; x = 5/2; y = (double) (5/2); j = (double) 5/2; z = (double) 5/2; t = 5./2; printf("%d %g %g %d %g %g\n", i, x, y, j, z, t); /* rezultat: 2 2 2 2 2.5 2.5 */ }