This is probelry a really daft question but can anyone point me in the direction of the followling piece of code
Outcome= (First<= Second) ? First : Second;
all are shorts
thanks
This is probelry a really daft question but can anyone point me in the direction of the followling piece of code
Outcome= (First<= Second) ? First : Second;
all are shorts
thanks
"?:" is the only ternary operator in C. It is equivalent to "if(first <= second) outcome = first; else outcome = second;"