Hello all,
I have "PRECISION" defined in the preprocessor code
and it could be int, float or double, but I do not know in the
code what it is.
Now if I want to assign zero to a "PRECISION" variable,
which of the following lines are correct:
PRECISION myVar = (PRECISION) 0; /* One */
PRECISION myVar = (PRECISION) 0.0; /* Two */
PRECISION myVar = 0; /* Three */
PRECISION myVar = 0.0; /* Four */
Thank you in advance,
Alex
I have "PRECISION" defined in the preprocessor code
and it could be int, float or double, but I do not know in the
code what it is.
Now if I want to assign zero to a "PRECISION" variable,
which of the following lines are correct:
PRECISION myVar = (PRECISION) 0; /* One */
PRECISION myVar = (PRECISION) 0.0; /* Two */
PRECISION myVar = 0; /* Three */
PRECISION myVar = 0.0; /* Four */
Thank you in advance,
Alex
Comment