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


Please Help Members By Posting Answers For Below Questions

Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1605


Explain how can I make sure that my program is the only one accessing a file?

639


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

662


Tell me what are bitwise shift operators?

665


Is sizeof a keyword in c?

587






Explain what is the use of a semicolon (;) at the end of every program statement?

741


What are the back slash character constants or escape sequence charactersavailable in c?

695


Tell me the use of bit field in c language?

635


Is null valid for pointers to functions?

619


what is reason of your company position's in india no. 1.

1782


What are structure types in C?

680


What is build process in c?

652


Why do we use main function?

649


‎How to define structures? · ‎

642


What is d'n in c?

646