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

Where are local variables stored in c?

1021


I need a sort of an approximate strcmp routine?

1014


What is data structure in c language?

1091


What is the default value of local and global variables in c?

1027


Explain what are the different file extensions involved when programming in c?

1094


What are the types of variables in c?

1003


Explain 'bit masking'?

1064


Write a program to print all permutations of a given string.

1184


What is function in c with example?

1131


What is the value of h?

1023


What is binary tree in c?

1081


Which programming language is best for getting job 2020?

1038


What is memory leak in c?

1110


Why calloc is better than malloc?

1015


What is printf () in c?

1062