- Jul 18, 2002
- 1,655
- 1
- 81
What is this line of code doing ?
lim is an int
prev_calculated is a const int
rates_total is a const int
N_Bar_Fr is an int
I haven't used C in years so am struggling to figure out what the above mess is short hand for. Online code beautifiers do not seem to change it.
I know it is shorthand for a single line if statement.
Code:
lim=prev_calculated==0?rates_total-N_Bar_Fr-10:N_Bar_Fr+2;
lim is an int
prev_calculated is a const int
rates_total is a const int
N_Bar_Fr is an int
I haven't used C in years so am struggling to figure out what the above mess is short hand for. Online code beautifiers do not seem to change it.
I know it is shorthand for a single line if statement.