If two numbers are involved in a calculation (in this case a multiplication), the result is converted to the more precise data type, to avoid data loss. Even though between long and double data can be lost in either direction, a number with decimals (such as double) is generally considered to be more precise than a number without decimals (such as long). Even though languages such as Java also have a "float" data type, "double" is normally used by default in cases such as these, because of the greater precision. However, you can convert explicitly to float, if you like, using a cast. (Float uses 4 bytes, while double uses 8 bytes.)
It is used with other data types such as long int or long float (=double). The capacity of the data types got increased with long keyword
Decimal numbers are real numbers. In C and C++ we use the float, double and long double data types to represent real numbers.
Percentage is not a data type. A percentage of something would need a floating point data type to store it. One of the following data types. float double long double (in gcc, not sure about other compiler systems)
data types supported by "C" are int , float , char , long , double , uint
eight primitive data types are: -boolean -char -byte -short -int -long -double -float
There is does a 'long' datatype in java, but no 'long double'.
It is used with other data types such as long int or long float (=double). The capacity of the data types got increased with long keyword
%ld
No, it's not. But it can be based on primitive data types (int, char, long, double and so on).
Decimal numbers are real numbers. In C and C++ we use the float, double and long double data types to represent real numbers.
Percentage is not a data type. A percentage of something would need a floating point data type to store it. One of the following data types. float double long double (in gcc, not sure about other compiler systems)
data types supported by "C" are int , float , char , long , double , uint
eight primitive data types are: -boolean -char -byte -short -int -long -double -float
byte, short, int, long, char, float, double, boolean
byte short long int char float double boolean
Assuming by "fundamental" you mean the primitive data types: boolean, byte, char, short, int, long, float, and double
char, short, long, float, double.