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
What are the functions to open and close the file in c language?
What are pointers?
Explain what are the standard predefined macros?
When would you use a pointer to a function?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Can a program have two main functions?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
what will be maximum number of comparisons when number of elements are given?
What is realloc in c?
Why is struct padding needed?
What is assignment operator?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Why isnt there a numbered, multi-level break statement to break out
How to write c functions that modify head pointer of a linked list?
How to find a missed value, if you want to store 100 values in a 99 sized array?