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 |
What are the 5 elements of structure?
What is difference between far and near pointers?
how to multiply two number taking input as a string (considering sum and carry )
What is c language used for?
How can I ensure that integer arithmetic doesnt overflow?
Is null always equal to 0(zero)?
a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6
What are the storage classes in C?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
main() { int i=5; printf("%d",++i + i); } output is 10 ------------------------ main() { int i=5; printf("%d",i++ + i); }output is 12 why it is so? give appropiate reason....
What is the difference between local variable and global variable in c?
What is ponter?