#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

What are the back slash character constants or escape sequence charactersavailable in c?

676


What is return in c programming?

506


What is difference between static and global variable in c?

529


Explain the difference between exit() and _exit() function?

628


Explain pointer. What are function pointers in C?

620






Explain how do you determine whether to use a stream function or a low-level function?

616


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

601


Why is %d used in c?

559


How can I write a function that takes a format string and a variable number of arguments?

598


Whats s or c mean?

589


What is pointer to pointer in c language?

585


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

1579


Can we use any name in place of argv and argc as command line arguments?

603


What is meant by preprocessor in c?

526


Are there namespaces in c?

560