write a program that explain #define and # undef directive



write a program that explain #define and # undef directive..

Answer / ravi joshi

The following code snippet explain the use of #define and
#undef preprorcessor directives.

/* define our own value of NULL */
#ifdef NULL
#undef NULL /* if NULL is already defined, then
undefine it */
#define NULL ((void*)0) /* define our own version of NULL
#endif

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More C Interview Questions

Is printf a keyword?

0 Answers  


Write a program to know whether the input number is an armstrong number.

0 Answers   Wipro,


Is javascript written in c?

0 Answers  


Is it possible to create recycle bin in mobiles?

2 Answers  


What is linear search?

0 Answers  






What is information technology.

1 Answers  


What is operator precedence?

0 Answers  


how to write hello word without using semicolon at the end?

6 Answers   Accenture,


develop algorithms to add polynomials (i) in one variable

0 Answers   Ignou, TCS,


what is answer for perfect number????????????????

1 Answers  


Why do we use null pointer?

0 Answers  


What is use of null pointer in c?

0 Answers  


Categories