Computer Science, asked by giripreshika1907, 6 months ago

What are the sizes for all the Data Types? ​

Answers

Answered by kranthipsr
2

Answer:

Data Types and Sizes

Type Name 32–bit Size 64–bit Size

char 1 byte 1 byte

short 2 bytes 2 bytes

int 4 bytes 4 bytes

long 4 bytes 8 bytes

Answered by PrincessTeja
3

Data Types and Sizes

D provides fundamental data types for integers and floating-point constants. Arithmetic may only be performed on integers in D programs. Floating-point constants may be used to initialize data structures, but floating-point arithmetic is not permitted in D. D provides a 32-bit and 64-bit data model for use in writing programs. The data model used when executing your program is the native data model associated with the active operating system kernel. You can determine the native data model for your system using isainfo -b.

The names of the integer types and their sizes in each of the two data models are shown in the following table. Integers are always represented in twos-complement form in the native byte-encoding order of your system.

Attachments:
Similar questions