Hello!
A basic data type is kind of information that is used in a computer program.
Some basic data types are,
1] Integer data type :
• It allows a variable to store numeric values.
• " int" is used to refer integer data type.
• The storage size of 'int' data type is 2 bytes.
Eg- int a;
2] Character data type :
• It allows a variable to store only one character.
• "char" keyword is used to refer character data type.
• The storage size of character data type is 1 byte.
Eg- char c;
3] Float data type :
• It allows a variable to store decimal values.
• "float" keyword is used to refer float data type.
• The storage size of float data type is 4 bytes.
Eg- float b;
4] Double data type :
• It allows the variable to store up to 10 digits after decimal values.
• "double" keyword is used to refer double data type.
• The storage size of double data type is 8 bytes.
Eg- double d;
Here is a simple short video on basic data types explained in easy way.