Computer Science, asked by aswathiaswathi304, 10 months ago

Which type of literal is 9?

Answers

Answered by Sailipi
5

Answer:

Hey

mate here is your answer

Explanation:

HOPE IT HELPS YOU

Attachments:
Answered by ansiyamundol2
0

Answer:

9 is an integer literal.

Explanation:

  • In C++, Integer literal - Integer values are represented and stored using them. (base 10)

Among integer literals, 9 is a decimal literal.

  • Decimal-literal : A decimal digit that is not zero, followed by zero or more decimal digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9).

If the question had been 9.0, it would have been a floating-point literal.

  • Floating-point literal : Real numbers are represented and stored using them. There are four parts to a real number: integer, real, fractional, and exponential. The floating-point literals can be saved as decimal or exponential values.
Similar questions