Question
#include <stdio.h>
int main()
{
int one = 1, two = 2;
#ifdef next
one = 2;
two = 1;
#endif
printf("%d, %d", one, two);
}
a.
1, 1
b.
1, 2
c.
2, 1
d.
2, 2
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of this C code? #include <stdio.h> int main() { int one = 1, two = 2; #ifdef next one = 2; two = 1;...
Similar Questions
Discover Related MCQs
Q. The C-preprocessors are specified with _________symbol.
View solution
Q. The preprocessor provides the ability for _______________
View solution
Q. What is the sequence for preprocessor to look for the file within <> ?
View solution
Q. Can function definition be present in header files?
View solution
Q. If the file name is enclosed in double quotation marks
View solution
Q. If the file name is enclosed in angle brackets
View solution
Q. Which of the following names for files not accepted?
View solution
Q. What is the advantage of #define over const?
View solution
Q. Which of the following properties of #define not true?
View solution
Q. The “else if” in conditional inclusion is written by?
View solution
Q. Which of the following sequences are unaccepted in C language?
a) #if
#else
#endif
b) #if
#elif
#endif
c) #if
#if
#endif
d) #if
#undef
#endif
View solution
Q. In a conditional inclusion, if the condition that comes after the if holds.
View solution
Q. Conditional inclusion can be used for
View solution
Q. The #elif directive cannot appear after the preprocessor #else directive
View solution
Q. For each #if, #ifdef, and #ifndef directive
View solution
Q. The #else directive is used for
View solution
Q. Use of functions
View solution
Q. Any C program
View solution
Q. What is function?
View solution
Q. The default parameter passing mechanism is
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!