Saturday, January 22, 2011

#if directive in c




There are total six conditional compilation directives. There are:

(a)#if

(b)#elif

(c)#else

(d)#endif

(e)ifdef

(f)ifndef





#if directive :

It is conditional compilation directive. That is if condition is true then it will compile the c programming code otherwise it will not compile the c code.



Syntax 1:



#if

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

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

#

No comments:

Post a Comment