0
Currently I have the code (expanded for your benefit):
<number> != <number> ? printf("|\\"); : <number>;
The idea here, is to do this condition in the least number of characters. This is currently, roughly the same number of characters it would take to be doing the exact same thing using an if statement, due to the fact, that I am fulfilling the second argument of the ternary operator which does not need to be filled, it is simply filled, as otherwise the statement does not run. (the final number is really a variable).
Is there any possible way to do the same conditional but shorter? (in C)
Very good, excellent answer. – Bernie – 2013-02-23T06:50:09.070