C programming Output ?

Please explain the output ??

#define MAX(x,y) (x)>(y) ? (x):(y)
#include<stdio.h>

int main() {
int i=10;
int j=5;
int k=0;
k== MAX(i++,++j);

printf("%d,%d,%d",i,j,k);
}

O/P: 11,7,0

3Comments
Sumit Verma sumitverma 26 Oct 2017 09:31 pm
I will highly suggest you to do not waste time specially in pre increment and post increment type questions. We all know these things are system dependent .
shivani shivani1234 27 Oct 2017 11:18 am

It is one of the implementation of sequence points, undefined behaviour is its output.

akshat gaterank 29 Oct 2017 10:06 am

ma'am what are sequence point s ???any useful link