#define MAX 3
main()
{
printf("MAX = %d \n",MAX );
#undef MAX
#ifdef MAX
printf("Vector Instituteā);
#endif
Answer Posted / poorna
Initially the max is defined so the first statement printf prints max=3,
#undef used to remove all the defined terms.so the max is not defined after this step.
So the if statement became false hence answer is Max=3
Is This Answer Correct ? | 27 Yes | 3 No |
Post New Answer View All Answers
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What do you mean by recursion in c?
What is the difference between array and pointer?
Why is python slower than c?
How can I automatically locate a programs configuration files in the same directory as the executable?
What is maximum size of array in c?
How can I get back to the interactive keyboard if stdin is redirected?
How do I get a null pointer in my programs?
What are the __date__ and __time__ preprocessor commands?
What are structure types in C?
Differentiate Source Codes from Object Codes
What is array of structure in c?
What does %d do?
What is anagram in c?