Tricky Ternary operator Usuage?

I : j; rewrite in a more understandable format if (j! = 0) j = i; /* else j = j.

1 for nice and simple explanation. – Vikram. Exe Jul 6 '11 at 10:04 thnakyou man, for putting such an effort to explian this out.

– parmanand Jul 6 '11 at 11:03.

You have to consider the operator "," that returns the rightmost evaluated expression: i,j evaluates to j. Se here about the comma operator. You probably never see such a code in a real project ( hopefully ), and you probably never write such a code unless you want to be funny :).

Thank you for the comma link. ,I got it how it works. – parmanand Jul 6 '11 at 11:04.

The leftmost : belongs to the rightmost?. So (i,j)? I : jis evaluated first and returns i, which then also will be the return from the second?Operator.

What (i,j) will return – parmanand Jul 6 '11 at 9:56 (i, j) returns j. In this case it makes no difference, though, as both I and j would evaluate to true with regards to the? Operator.

– harald Jul 6 '11 at 10:41.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions