C Program to Display same Source Code as Output


Program :

Output :

Explanation :

  • __FILE__ is Standard Predefined Macros in C Programming.
  • This macro will expand to the name of current file path.
  • Suppose we have saved this source code at path -

then

will be expanded as -