Format of Null-Terminated Character String Data

Type char string[n]
Size Length of string (not including null).
Alignment Byte-aligned. If the length of the string is greater than 4 bytes, the string is 4-byte aligned. In the following mapping, high memory is to the right.
Storage Mapping
byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6
'S' 'T' 'R' 'I' 'N' 'G' '\0'



Data Mapping