#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

How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

609


Are comments included during the compilation stage and placed in the EXE file as well?

668


Does c have circular shift operators?

725


Write a factorial program using C.

638


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

647






Explain how can I right-justify a string?

618


Explain what is the benefit of using enum to declare a constant?

585


Difference between goto, long jmp() and setjmp()?

700


How can I recover the file name given an open stream or file descriptor?

589


What are variables c?

612


How many levels deep can include files be nested?

646


Do you know the difference between exit() and _exit() function in c?

605


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15487


What is spark map function?

578


What is volatile c?

520