#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 scope of variable in c?
What is difference between structure and union?
What is a header file?
What is keyword in c?
What is use of pointer?
Write programs for String Reversal & Palindrome check
What are the advantages of using Unions?
What is pointer to pointer in c with example?
How do you print only part of a string?
Is using exit() the same as using return?
What is the purpose of main() function?
Are c and c++ the same?
How can I read data from data files with particular formats?
What is the symbol indicated the c-preprocessor?
What is a file descriptor in c?