Abstract
The notion of type is one of the key ones. A type is essentially a tag assigned to a data entity. Every data transformation is defined for specific data types, which ensures their correctness (you would not want to add the amount of active Reddit users to the average temperature at noon in Sahara, because it makes no sense).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
This language design flaw is corrected in C++, where 'x' has type char.
- 2.
The keyword is usual arithmetic conversions.
- 3.
Until C99; but even nowadays variable length arrays are discouraged by many because if the array size is big enough, the stack will not be able to hold it and the program will be terminated.
- 4.
POSIX is a family of standards specified by the IEEE Computer Society. It includes the description of utilities, application programming interface (API), etc. Its purpose is to ease the portability of software, mostly between different branches of UNIX-derived systems.
- 5.
Note that this might not work out of the box for wider types due to possible gaps between struct fields.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Igor Zhirkov
About this chapter
Cite this chapter
Zhirkov, I. (2017). Type System. In: Low-Level Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2403-8_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2403-8_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2402-1
Online ISBN: 978-1-4842-2403-8
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books