-
Conditional Assignments
Sometimes, you’ll have a scenario with two variables, and you need to use one of them based on a simple test. Rather than a long and awkward if / else statement, C allows the use of the ? : form. It is perfectly acceptable to write: int i,j,k,l; … i = (j > 5? k […]