Markus
public c v1 · immutable#include <stdio.h>int main(int argc, char *argv[]){ printf("Casting a float to an int:\n"); printf("(int)23.0 = %d\n", (int)((float)23.0)); printf("Multiplying a float with an integer:\n"); printf("2.3 * 10 = %f\n", (2.3 * 10)); printf("Multiplying a float with a float:\n"); printf("2.3 * 10.0 = %f\n", (2.3 * 10.0)); printf("Casting the result of this back to an integer:\n"); printf("(int)(2.3 * 10.0) = %d\n", (int)(2.3 * 10.0)); return 0;}