C Tutorial/Preprocessor/FILE LINE
__FILE__: indicate the file name
#include <stdio.h>
main()
{
printf("C FILE %s LINE %d\n", __FILE__, __LINE__ );
}
C FILE FILEindicatethefilename0.c LINE 6
__LINE__: indeicate the current line number,
#include <stdio.h>
main()
{
printf("C FILE %s LINE %d\n", __FILE__, __LINE__ );
}
C FILE LINEindeicatethecurrentlinenumber0.c LINE 7