which one is not preprocessor directive
a)#if b)#elif c)#undef d)#pragma
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / wizard
Ans is #if, no preprocessor directive with #if. it is #ifdef
or #ifndef
| Is This Answer Correct ? | 12 Yes | 5 No |
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 |
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 |
How to reverse a linked list
1 Answers Aricent, Fidelity, IBM, TCS,
How can I increase the allowable number of simultaneously open files?
What is the output of the following progarm? #include<stdio.h> main( ) { int x,y=10; x=4; y=fact(x); printf(“%d\n”,y); } unsigned int fact(int x) { return(x*fact(x-1)); } A. 24 B. 10 C. 4 D. none
Explain logical errors? Compare with syntax errors.
main() { int i; printf("%d",scanf"%d",&i))//if the input is 12 24 34 then wat will be the output }
Why can’t constant values be used to define an array’s initial size?
wap in c to accept a number display the total count of digit
define c
what are bitwise shift operators?
What is difference between class and structure?
main() { int i; printf("%d",i^i); }
Explain do array subscripts always start with zero?