89.0k views
2 votes
For the following C declarations, list the Intel data type, the assembly-code suffix, and size (bytes).

1) char: BYTE, 1
2) short: WORD, 2
3) int: DWORD, 4
4) long: QWORD, 8
5) char *: QWORD, 8
6) float: DWORD, 4
7) double: QWORD, 8

User Greg Kempe
by
7.9k points

1 Answer

2 votes

Final answer:

The list includes the correct Intel data types, assembly-code suffix, and the size in bytes for each of the specified C declarations, including BYTE for 'char', WORD for 'short', DWORD for 'int', and 'float', and QWORD for 'long' on 64-bit systems, 'char *' on 64-bit systems, and 'double'. The 'long' and pointer types vary between 32-bit and 64-bit systems.

Step-by-step explanation:

The student has asked for the Intel data types, assembly-code suffix, and size in bytes for various C declarations. Here is the list with the correct types and sizes:

User Christian Bonato
by
8.3k points