posted 22 years ago
Hi All,
I am unable to read this statement written using ? operator.
a = b ? c ? d : e ? f : g : h ? i : j ? k : l ;
If any one can tell me whihc is true part of which and which is false part. To me this statement seems look like this.
if b is true then we go the true part and that is that we check c that if c is true. And if it is true then we finish at d by reutring the value of d.
But what if b is false what will be returned.
And now if we find b true, then c false and e false then we eand up at g. Can someone explain me what wil the case theat we will reach at k or l. Or if some one can write an algorithmic form of this expression.
Regards
Muhammad Ali