Machine-translated by Google. Questions are authored in English.
Top

Discussion

The source filename and line number come from the preprocessor macros________and______

  • A._ _FILE_ _ and _ _LINE_
  • B.
  • C. _NAME_ _ and _ _NUMBER_
  • D.
  • E. _FILENAME_ _ and _ _NMN_
  • F.
  • G. _FILE_ _ and _ _NUM_ _

Answer: A

Correct answer: _ _FILE_ _ and _ _LINE_ _

__FILE__ expands to the current source file name as a string and __LINE__ to the current line number. They are what assert uses to report where a failure occurred, and they are indispensable in logging macros.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.