#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 happens if header file is included twice?
What are the rules for the identifier?
Write programs for String Reversal & Palindrome check
What are the modifiers available in c programming language?
What are local static variables? How can you use them?
What is selection sort in c?
What is main return c?
What is the significance of an algorithm to C programming?
What are predefined functions in c?
What are the benefits of c language?
Is file a keyword in c?
Describe the steps to insert data into a singly linked list.
Calculate 1*2*3*____*n using recursive function??
What is your stream meaning?
What is 02d in c?