#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 c programming?
What is volatile, register definition in C
How is a null pointer different from a dangling pointer?
What is table lookup in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Explain how can I right-justify a string?
Explain in detail how strset (string handling function works )pls explain it with an example.
What is the use of the restrict keyword?
What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }
What is the use of clrscr?
What is the use of f in c?
Explain enumerated types in c language?