Conditional Compilation Macros #ifdef and #ifndef
This video tutorial explains the #ifdef and #ifndef conditional compilation macros in c++ programming.
You are gonna learn what are conditional compilation macros and how to use #ifdef and #ifndef in your program in detail with example.
source code for this tutorial
#include <iostream>
#define ANIL 1
using namespace std;
int main()
{
#ifndef ANIL
cout << "hey anil";
#else
cout << "who r u";
#endif
return 0;
}