Computer Science, asked by mehrakukldeep748, 8 months ago

distinguish integer and real constants with examples​

Answers

Answered by Anonymous
2

Answer:

Constants of type REAL are numbers which may include a fractional part. ... Either the integer or the fractional part, but not both, may be omitted. An INTEGER constant or a REAL constant defined as in (i), followed by a decimal exponent written as the letter 'E' followed by an INTEGER constant.

Answered by ishita218316
1

1.A real constant is combination of a whole number followed by a decimal point and the fractional part. Example: 0.0083 -0.75 . 95 215. Use of Real or Floating-point constants. Integer numbers are inadequate to represent quantities that vary continuously, such as distances, heights, temperatures, prices and so on.

2.An integer constant is a decimal (base 10), octal (base 8), or hexadecimal (base 16) number that represents an integral value. Use integer constants to represent integer values that cannot be changed.

Explanation:

pls follow me and mark as brainlist ans

Similar questions