Computer Science, asked by vikassonkar200pc7ctv, 1 year ago

distinguish between integer and floating constant

Answers

Answered by zeeshan3828
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;
Answered by KomalSrinivas
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