Compound data type: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 3:
<div class="messagebox">
Create a structure Point(int x, int y)
</div>
==[[Description]]==
- Its internal content is in byte machine format (C struct) compatible.
- For instance, by using pack/unpack internally on some scripting language.
- For a given object point with x=1 and y=2, the byte stream should be on x86 32-bit machines:
[0x01 0x00 0x00 0x00 |0x02 0x00 0x00 0x00]
</div>
 
==[[Ada]]==