C++ - Decimal literal
Decimal literals are also known as decimal constants. we can describe it from the mathematics known Arabic digits from 0 to 9.decimal literal
Description
1234
Data:
- number -
Output
- return - Integers
Examples
C++
Decimal literal the possible of use:x = 10; // x = 10
y = 4 * 10; // y = 40
if (x>5)
y = (float)x / 0xa; // y = 1
C++
Other pieces of example codes:i>0
3.14 - 1
16 << 2
2 & (i & 4)
9876
You can find it in the following collections: constants
Decimal literal in another programming language: