#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


Please Help Members By Posting Answers For Below Questions

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.

829


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.

1106


What do you mean by recursion in c?

726


What is the difference between array and pointer?

660


Why is python slower than c?

705






How can I automatically locate a programs configuration files in the same directory as the executable?

722


What is maximum size of array in c?

676


How can I get back to the interactive keyboard if stdin is redirected?

773


How do I get a null pointer in my programs?

743


What are the __date__ and __time__ preprocessor commands?

674


What are structure types in C?

762


Differentiate Source Codes from Object Codes

970


What is array of structure in c?

690


What does %d do?

841


What is anagram in c?

607