...
Mismatches between arguments and conversion specifiers may result in undefined behavior.
Code Block | ||
---|---|---|
| ||
const char *error_msg = "Resource not available to user.";
int error_type = 3;
/* ... */
printf("Error (type %s): %d\n", error_type, error_msg);
|
...