#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
Write a factorial program using C.
Explain why C language is procedural?
What is console in c language?
What is a dynamic array in c?
What is the difference between a function and a method in c?
Explain how can type-insensitive macros be created?
What is the difference between far and near in c?
How to throw some light on the b tree?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
How do I swap bytes?
Why c is a procedural language?
What are the ways to a null pointer can use in c programming language?
What is the difference between single charater constant and string constant?
Differentiate abs() function from fabs() function.
Which is an example of a structural homology?