Saturday, January 22, 2011

#ifndef in c example






Directive #ifndef is just opposite to the directive #ifdef . In this case if identifier has not defined then #ifndef is true and if identifier has defined then #ifndef condition will false.



Syntax :



#ifndef

--------------

--------------

#else

--------------

--------------

#endif



Example 1:



#include

#define int �A�



int main(){

No comments:

Post a Comment