The pre processor "DEFINE"

Words
15
Reading
1 min
Listen
Play
9y

Program body

#include iostream
#define VAMP
using namespace std;

int main (){
#ifdef VAMP
cout<<"defined wolf"<<endl;
#else
cout<<"not defined"<<endl;
#endif
#undef VAMP
#ifndef VAMP
cout<<"woao it is defined"<<endl;
#else
cout<<"AHH??? not defined dud"<<endl;
#endif // VAMP
}

Made IN

this program is made in codeblocks in C++ language

The pre processor "DEFINE" | Ecency