Write a program of defining macros with value


 

/* Write a program of defining macros with value. */

#include<iostream.h>

#include<conio.h>

#define MACRO1 25

int main()

{

clrscr();

#ifdef MACRO1

cout<<“MACRO1 define with value”<<MACRO1;

#endif

return 0;

}

output:

MACRO1 defined with values 25

Related Posts

Comments are closed.