Which predefined macro expands to the current line number in the source file?
Correct answer A. __LINE__
Explanation
__LINE__ expands to an integer constant giving the current source line, and __FILE__ gives the file name as a string literal. Together they are used in logging and assert messages. __DATE__ is the compilation date, and __func__ is not a macro but a predefined identifier holding the current function's name, added in C99.
Answer checked How we write and check questions
Discussion