#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


Please Help Members By Posting Answers For Below Questions

Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

1889


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

1542


What is the benefit of using an enum rather than a #define constant?

899


what is the significance of static storage class specifier?

1891


What is the significance of an algorithm to C programming?

774






What does a function declared as pascal do differently?

785


Do you know null pointer?

765


Explain how many levels deep can include files be nested?

796


What is the explanation for prototype function in c?

727


What is main function in c?

750


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1636


Do string constants represent numerical values?

1102


What is s or c?

775


Write a program to find factorial of a number using recursive function.

833


please send me the code for multiplying sparse matrix using c

1914