Printf: output char, float and double
#include <stdio.h>
int main(void)
{
char ch;
float f;
double d;
ch = 'X';
f = 10.23;
d = 13.09;
printf("ch = %c, ", ch);
printf("f = %f, ", f);
printf("d = %f", d);
return 0;
}
Related examples in the same category