Example

int main(int argc, char* argv[])
{
double num;
printf("double: %1.2f",  num);
printf("double: %c",  num);
return 0;
}

Solution
Make sure you are using the right format string for the given type of argument.

int main(int argc, char* argv[])
{
double num;
printf("double: %1.2f",  num);
printf("double: %e",  num);

return 0;
}