write a program that explain #define and # undef directive
Answer Posted / 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 View All Answers
Where are local variables stored in c?
I need a sort of an approximate strcmp routine?
What is data structure in c language?
What is the default value of local and global variables in c?
Explain what are the different file extensions involved when programming in c?
What are the types of variables in c?
Explain 'bit masking'?
Write a program to print all permutations of a given string.
What is function in c with example?
What is the value of h?
What is binary tree in c?
Which programming language is best for getting job 2020?
What is memory leak in c?
Why calloc is better than malloc?
What is printf () in c?