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

Answers were Sorted based on User's Feedback



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

Answer / hyderabadi

All are Preprocessor directives
below are some more preprocessors for your reference:

#define
#error
#import
#undef
#elif
#if
#include
#using
#else
#ifdef
#line
#endif
#ifndef
#pragma

Is This Answer Correct ?    19 Yes 0 No

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

Answer / prem

All are preprocessor Directives..
Refer http://msdn2.microsoft.com/en-us/library/79yewefw
(VS.71).aspx

for details

Is This Answer Correct ?    10 Yes 1 No

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

Answer / wizard

Ans is #if, no preprocessor directive with #if. it is #ifdef
or #ifndef

Is This Answer Correct ?    12 Yes 5 No

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

Answer / soumya

all are preprocessor

Is This Answer Correct ?    4 Yes 0 No

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

Answer / magesh

All are preprocessor directive

Is This Answer Correct ?    3 Yes 0 No

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

Answer / shiva

All are preprocessor directives

Is This Answer Correct ?    4 Yes 2 No

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

Answer / neeraj kandwal

all r preprocessor directive

Is This Answer Correct ?    2 Yes 0 No

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

Answer / yashwanth

#pragma is not a preprosessor directive, because pragma is
use to suppress errors,, but errors are exposed only after
compilation,, which is defenitly after preprosessing,, so
pragma is not a preprosessor diretive

Is This Answer Correct ?    2 Yes 0 No

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

Answer / yashwanth

all are preprocessor directives

Is This Answer Correct ?    1 Yes 0 No

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

Answer / 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

More C Interview Questions

What is use of integral promotions in c?

0 Answers  


what is the difference between declaration ,defenetion and initialization of a variable?

7 Answers   LG Soft,


Tell me the use of bit field in c language?

0 Answers  


Why n++ execute faster than n+1 ?

2 Answers  


logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............

2 Answers   Infosys,






Explain how many levels deep can include files be nested?

0 Answers  


Explain what is wrong with this statement? Myname = ?robin?;

0 Answers  


write a program to find the given number is prime or not

2 Answers   Accenture, Vasutech,


Method Overloading exist in c ?

3 Answers   Wipro,


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

0 Answers  


char p="data"; printf(p);

2 Answers  


What is #define size in c?

0 Answers  


Categories