#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 / amitesh

i=11 j=6 k=10

Is This Answer Correct ?    9 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array within structure?

574


What are pointers? What are stacks and queues?

571


What is sizeof return in c?

607


Is there a way to jump out of a function or functions?

627


Write a program for Overriding.

672






Write a program to show the change in position of a cursor using c

573


Can we change the value of constant variable in c?

566


Is main an identifier in c?

591


What is the use of #define preprocessor in c?

607


What is the code in while loop that returns the output of given code?

1286


what do the 'c' and 'v' in argc and argv stand for?

636


What does int main () mean?

539


What is the purpose of void in c?

609


Why is sprintf unsafe?

611


How can you find the exact size of a data type in c?

590