#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
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What is the benefit of using an enum rather than a #define constant?
what is the significance of static storage class specifier?
What is the significance of an algorithm to C programming?
What does a function declared as pascal do differently?
Do you know null pointer?
Explain how many levels deep can include files be nested?
What is the explanation for prototype function in c?
What is main function in c?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Do string constants represent numerical values?
What is s or c?
Write a program to find factorial of a number using recursive function.
please send me the code for multiplying sparse matrix using c