What are data types? Describe any 3 of them with example.
Answers
Answered by
0
Answer:
data types are the types of value the user enters to run the program. for example:-
(a) integer:- accepts only numbers of 4 bytes without decimal value. ex:- int a= 46;
(b) double:- accepts number of 8 bytes with decimal values. ex:- double b= 25.67;
(c) Boolean:- data type used to return true or false value. ex:- a=4, b=6
boolean c= a>b;( output will be false)
boolean d= a<b;( output will be true)
Similar questions