which one is not preprocessor directive
a)#if b)#elif c)#undef d)#pragma

Answer Posted / lnk

before asnwering please do understand what are
preprocessive directive ....

A preprocessive derectives are used because it would be
easy to change and easy to compile in different execution
environments. Directives in the source file tell the
preprocessor to perform specific actions



# if is #if: This directive executes its associated block
of code if and only if the condition specified along with
this directive is evaluated to true.

#elif: Else-if conditions can be specified using #elif
directive. Block of code associated with #elif directive
will be triggered if the condition specified in this
directive is evaluated to true and the condition specified
by its related if statement is evaluated to false. #elif
block is optional.

#undef: This directive does the reverse process of #define
directive. #undef will reset its associated identifier to
Boolean value “false”.

#pragma: This directive controls the display of warning
message specified using #warning directive. I


so all of them are preprocessive directives ...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do u mean by Direct access files? then can u explain about Direct Access Files?

1653


Explain how to reverse singly link list.

618


What is the purpose of 'register' keyword in c language?

638


Explain about C function prototype?

617


Can you return null in c?

607






What is pass by reference in c?

621


Describe newline escape sequence with a sample program?

673


What are pointers in C? Give an example where to illustrate their significance.

758


Is c procedural or functional?

595


Can math operations be performed on a void pointer?

595


How do I swap bytes?

638


Why are algorithms important in c program?

630


Can you explain the four storage classes in C?

650


Create a simple code fragment that will swap the values of two variables num1 and num2.

832


What is null pointer in c?

606