Data type is basically the form or type of the specific data that can hold variables in the program.
Variables is the name of storage location which contain information of Data Type.
Types of Data types:-
1: Integer -(int) eg.10,9,8... eg. Age of person
(natural no.s)
2: Float -(float) eg.6.8,9.5,.... eg.Price of anything
(decimal no.s)
3: Double -(double) eg.7.8967687666867,......
(Long Values After Decimal)
4: Character -(char) eg. 'a', 'B'...... eg. Grade
(Letters)
5: String -(char name[]) eg. "Yes", "INDIA"
eg. Address
[(0-9) ,a to z, A to Z, Symbols.]
6: Boolean - eg. ON/Off , Yes/No.
7: Void - eg. Usage with functions[void main()]
--This does not contain any values like other data types.--
Comments
Post a Comment