d) Why is a class known as a composite data type?
e) Arrange the following primitive data types in the ascending order of their size.
i) char ii) double iii) byte iv) int
[2]
[2]
Question 2
Answers
Answered by
0
Answer:
D) A class is defined with a number of data members of different types. When a object is created all the numbers described within a class. The class becomes such a data type that includes various primitive types. Hence, the class is said to be a complete data type.
E) Arranging in ascending order:
double (8 bytes)
int (4 bytes)
char (2 byte)
byte (1 byte)
Similar questions