define the following data types:-int
pls answer dedo kal lecture h computer ka
Answers
Answered by
1
If you need to assign the value 4 to an integer variable you can write this:
int anInt = 4;
The digit 4 is a literal integers.
Generally speaking, a series of digits with no decimal point is typed as an integer. You can specify a long integer by putting an 'L' or 'l' after the number. 'L' is preferred as it cannot be confused with the digit '1'. A series of digits with a decimal point is of type double.
Similar questions