distinguish between integer and floating constant
Answers
Answered by
61
Integer is a whole number which doesn't contain any decimal point
Eg : int a=2;
Floating point is a number which has decimal point
Eg: float b=2.5;
Eg : int a=2;
Floating point is a number which has decimal point
Eg: float b=2.5;
Answered by
27
Answer:An integer is a valued number for an integer. There are three different forms of number system in which integer data can be written off. Such as decial, octal and hexadecimal. They require a memory of 2 types. Example- 213, 987 etc.
Floating point is a decimal number which contains an exponent, decimal point or both. Decimal number system is the only system in which decimal data can be written off. It requires a memory of 4 bytes. Example- 3.17, 34.54e*43 etc.
Explanation:
Similar questions
English,
8 months ago
Physics,
8 months ago
English,
1 year ago
Physics,
1 year ago
CBSE BOARD X,
1 year ago