#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 |
Write a program to find factorial of a number using recursive function.
What is #define?
Explain what is the difference between functions abs() and fabs()?
Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors
What is extern c used for?
Explain 'far' and 'near' pointers in c.
When should the volatile modifier be used?
What are the 3 types of structures?
In how much time you will write this c program? Prime nos from 1 to 1000
Do character constants represent numerical values?
What is a far pointer in c?
Describe the header file and its usage in c programming?