I
Ioannis Vranos
Consider the following uses of 0 as constants:
float f= 0f; // doesn't seem to work
float f= 0.f // Is this valid?
float f= 0.F // Is this valid?
float f= 0.0f; // It works
float f= 0.0F // Does 'F' mean float here?
float f= 0.0 // is 0.0 a double here?
double d= 0.0d // doesn't seem to work. Is there any double
// specification like 'f' for float?
long double d= 0.0l // Does 'l' mean long double here?
long double d= 0.0L // Does 'L' mean long double here?
// L is also used for wchar_t character constants
// and string literals.
long i= 1L; // Does 'L' mean long?
long i= 1l; // Does 'l' mean long?
float f= 0f; // doesn't seem to work
float f= 0.f // Is this valid?
float f= 0.F // Is this valid?
float f= 0.0f; // It works
float f= 0.0F // Does 'F' mean float here?
float f= 0.0 // is 0.0 a double here?
double d= 0.0d // doesn't seem to work. Is there any double
// specification like 'f' for float?
long double d= 0.0l // Does 'l' mean long double here?
long double d= 0.0L // Does 'L' mean long double here?
// L is also used for wchar_t character constants
// and string literals.
long i= 1L; // Does 'L' mean long?
long i= 1l; // Does 'l' mean long?