#include <stdio.h>
#define ERROR_MSG "Error: there was an error "
#define IN_LINE_MSG "in line"
int line = 0;
int main()
{
printf("%s%s %d", ERROR_MSG, IN_LINE_MSG, line);
}
Выход:
Error: there was an error in line 0
или
#include <stdio.h>
#define ERROR_MSG "Error: there was an error "
#define IN_LINE_MSG "in line"
int line = 0;
int main()
{
printf(ERROR_MSG IN_LINE_MSG " %d", line);
}
Выход:
Error: there was an error in line 0