Does DS has the iif or the ? : operator in C?
E.g., I want to build up an output string
part1 : part2 : part3
where part1 & part3 are substring of the input string, and part2 need to be conditionally build according to some specific key char in the input string. The "part2" expressed in C would be
Code: Select all
( condition ? exp1 : exp2 )
thanks