MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Preprocessor
→
General
→
Which of the following are correct preprocessor di...
1.
Which of the following are correct preprocessor directives in C? 1. #ifdef 2. #if 3. #elif 4. #undef
A.
1, 2
B.
4
C.
D.
D.
Answer» E.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What is the output of the following C program? #include #define SQR(x) (x*x) int main() { int a; int b=4; a=SQR(b+2); printf("%dn",a); return 0; }
How will you free the memory allocated by the following program? #include #define CONDITION(x) printf("letsfindcourse"); int main() { CONDITION(0); return 0; }
The translator which performs macro calls expansion is called:
What is the Error of this program? #include #define CONDITION(x) printf("letsfindcourse"); int main() { CONDITION(0); return 0; }
Which statment is true about the given code ? #include enum colors {lets,find,course}; int main() { printf("%d %d %d",course,lets,find); return 0; }
What is the output of this program? #include int main() { printf("%d",30); return 0; }
What is the output of this program? #include #define p 17; int main() { printf("%d",p); return 0; }
What is the output of this program? #include #define clrscr() 17 int main() { clrscr(); printf("%d",clrscr()); return 0; }
What is the output for the following code snippet? #include #define A -B #define B -C #define C 5 int main() { printf("The value of A is %dn", A); return 0; }
What is the output of this program? #include #define i 5 int main() { #define i 10 printf("%d",i); return 0; }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies