Consult your limits.h and math.h.
For char it will be -128..127 or 0.255 (signed and unsigned).
i wann't ask the range of double float and long double float??
In computer programming, a variable can be (among other things) an integer or a long integer. An integer can be any whole number in the range of -32,768 to 32,767 A long integer can be any whole number in the range of -2,147,483,648 tp 2,147,483,647 I have never heard of an "integer" variable being called a "short integer" but it makes a kind of sense. Note: The size of integer types is platform-dependent, but usually: short: 16 bits int: 32 bits (16 in archaic systems: MSDOS OS Windows16) long: 32 bits (64 in unix64) long long: 64 bits
Yes, but this will result in an implicit conversion and possible narrowing. A char is always at least 8-bits in length, but an int may be 4 bytes in length (the actual length is implementation-defined) thus assigning an integer value outwith the range of a char will result in narrowing. Similarly when assigning a float (typically 16-bits in length); the fractional component will be lost and the integer value may be narrowed. An unsigned char is only guaranteed to hold values in the range 0 through 255 and a signed char is only guaranteed to hold values in the range -127 through +127. Any values outwith those integer ranges may result in narrowing. Most modern architectures support twos-complement notation thus the signed range becomes -128 through +127, however this cannot be guaranteed across all implementations. Also, a "plain" char may be signed or unsigned depending on the implementation but is a distinct type from an explicitly signed or unsigned char. A plain char is only guaranteed to hold positive integer values in the range 0 through 127 across all implementations.
A double is a floating point type, greater than or equal in size to a float.
No. In Java, you can store a limited range of values in an integer. Specifically, integers are 32-bit signed values which can store values in the range [-231, 231-1]. If you need to store more values, consider using a long integer [-263, 263-1] or the BigInteger class (which can store arbitrary-precision values).
Consult your limits.h and math.h. For char it will be -128..127 or 0.255 (signed and unsigned).
i wann't ask the range of double float and long double float??
Yes.
In computer programming, a variable can be (among other things) an integer or a long integer. An integer can be any whole number in the range of -32,768 to 32,767 A long integer can be any whole number in the range of -2,147,483,648 tp 2,147,483,647 I have never heard of an "integer" variable being called a "short integer" but it makes a kind of sense. Note: The size of integer types is platform-dependent, but usually: short: 16 bits int: 32 bits (16 in archaic systems: MSDOS OS Windows16) long: 32 bits (64 in unix64) long long: 64 bits
The signed integer range extends only from negative infinity to positive infinity. You have to make up your own names and symbols for whole numbers that are not included in that range.
Signed integer is any integer that carries negative sign while unsigned integer is any integer that carries positive sign
The problem must have given you a list of several whole numbers. The integer range is the difference in size (distance) between the biggest one and the smallest one.
-128 to 127
0-7
Bits administrator
0 - 65535
The denominator for any integer in that range is 1.