Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the functions to open and close the file in c language?

1006


What are pointers?

1060


Explain what are the standard predefined macros?

1090


When would you use a pointer to a function?

1010


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.

2598


Can a program have two main functions?

1082


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1029


what will be maximum number of comparisons when number of elements are given?

1864


What is realloc in c?

1034


Why is struct padding needed?

1044


What is assignment operator?

1023


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2256


Why isnt there a numbered, multi-level break statement to break out

1010


How to write c functions that modify head pointer of a linked list?

955


How to find a missed value, if you want to store 100 values in a 99 sized array?

1376