Code
float a = (argc - 2)?: strtod(argv[1], 0);
unless ?: is some special operator i'm not familiar with, i'm guessing it's the ternary operator where the true case is omitted.
eg
if (arc -2)
// a = nothing?
else
a = strtod(argv[1], 0);
not sure if that even compiles tbh. is a not assigned anything?
/edit:
Code
http://en.wikipedia.org/wiki/%3F:#C
A GNU extension to C allows omitting the second operand, and using implicitly the first operand as the second also:
a = x ? : y;
The expression is equivalent to
a = x ? x : y;
This post was edited by carteblanche on Oct 26 2014 06:22pm