solve it and tell me how it works?

Ankur Kamboj's Avatar, Join Date: Jun 2011
Light Poster
main(){
int i = 10, j =20;
j = i ,j?(i,j)?i :j:j;
printf(“%d\n%d”,i,j);
}

the answer is 10 10
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
See the use of comma operator and it will be clear why you have that as a answer.
0
Ankur Kamboj's Avatar, Join Date: Jun 2011
Light Poster
Quote:
Originally Posted by shabbir View Post
See the use of comma operator and it will be clear why you have that as a answer.
thanks alot...