Computer Science, asked by rabinagrawal943, 10 months ago

arrange the following data types in ascending order of their size 1. char 2.byte 3. double 3.int​

Answers

Answered by naimanavas2005
0

Answer:

byte, char ,int, double

Answered by qwnerazzuri
1

ascending order of size: byte < char < int < double.

size:

"1 Byte" occupies 8bits, a "char" occupies 1 Byte i.e, 8bits, an "int" occupies 4 Bytes and a "double" occupies 8 Bytes. So according to their sizes all are arranged from a lower value to a higher value.

char is used to store characters.

int is used to store integers.

double is used to store big decimal numbers.

Similar questions