Unexpected output of printf
You are passing a float for the %d format string, but printf is expecting an int. printf is a variable argument list function: printf(const char *format_string,…); This means that the rest of the arguments after the format string can be of any type and number, and the compiler doesn’t know what they should be. It … Read more