#define MAX 3
main()
{
printf("MAX = %d \n",MAX );
#undef MAX
#ifdef MAX
printf("Vector Institute”);
#endif
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / shaik anif
main()
{
int a[3][4] ={1,2,3,4,5,6,7,8,9,10,11,12} ;
int i, j , k=99 ;
for(i=0;i<3;i++)
for(j=0;j<4;j++)
if(a[i][j] < k) k = a[i][j];
printf("%d", k);
}
Is This Answer Correct ? | 8 Yes | 6 No |
What is the role of this pointer?
Convert the following expression to postfix and prefix X $ Y Z - M + N + P / Q / (R + S)
write a program to print calender using for loop.
what are the interview question's in the language c
Explain what are the advantages and disadvantages of a heap?
What is the difference between struct and union in C?
Is main() is used in the program,,see below example? void main() { int i; for(i=0;i<10;i++) main(); } Then what is the output of the program?
What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }
can we change the default calling convention in c if yes than how.........?
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.
what are the general concepts of c and c++
Who developed c language?