Print char, int and float values in C