Predefined macros and line Pre-Processor Directive





This video tutorial explains about some predefined macros such as __LINE__, __FILE__, __DATE__, __TIME__, __STDC__, __cplusplus and the pre-processor directive #line.
You are gonna learn what does predefined macros do and also how to use predefined macros, how to use #line in your program in detail with examples.

source code for this tutorial

#include 

using namespace std;

int main()
{
cout << "current line is "<<__LINE__<
                  
Back To Top