#define MAX(x,y) (x) > (y) ? (x) : (y)
main()
{
int i = 10, j = 5, k = 0;
k = MAX(i++, ++j);
printf("%d %d %d", i,j,k);
}
what will the values of i , j and k?
}
Answer Posted / amit kumar ram
i=11, j=6 , k=10.
bcoz i=10 and j=6 pass to function
then check and give k=x which is k=10
then increament i by 1 i.e i=11.
| Is This Answer Correct ? | 20 Yes | 12 No |
Post New Answer View All Answers
what is the function of pragma directive in c?
What is getche() function?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Why structure is used in c?
What math functions are available for integers? For floating point?
How was c created?
What are the different types of data structures in c?
What is the difference between malloc calloc and realloc in c?
What is extern storage class in c?
Explain what is the stack?
Explain how do you print an address?
What is variable in c example?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Is javascript written in c?
What is calloc() function?