#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
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Are comments included during the compilation stage and placed in the EXE file as well?
Does c have circular shift operators?
Write a factorial program using C.
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Explain how can I right-justify a string?
Explain what is the benefit of using enum to declare a constant?
Difference between goto, long jmp() and setjmp()?
How can I recover the file name given an open stream or file descriptor?
What are variables c?
How many levels deep can include files be nested?
Do you know the difference between exit() and _exit() function in c?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What is spark map function?
What is volatile c?