+ 1
What are the other data types for variable other that integer??
Also give an example .
1 Answer
+ 2
⢠For storing numbers.
Integer e.g. 56
Float/Double e.g. 56.357
⢠For either true or false:
Boolean e.g. True/False
⢠For sentences:
String e.g. "Hello World!"
Character/Char is there in C++, which is like string but stores only one character.