Abstract
At the time of writing, the C17 standard, officially named ISO/IEC 9899:2018, is the last published C standard. It replaces the C11 standard, does not introduce new features, and fixes defects reported for C11. The __STDC_VERSION__ macro for this standard has the value of 201710L. To compile for a C17 standard, we include the -stdc=17 flag. Example:
gcc -Wall source.c -std=c17 -pedantic
You have full access to this open access chapter, Download chapter PDF
At the time of writing, the C17 standard, officially named ISO/IEC 9899:2018, is the last published C standard. It replaces the C11 standard, does not introduce new features, and fixes defects reported for C11. The __STDC_VERSION__ macro for this standard has the value of 201710L. To compile for a C17 standard, we include the -stdc=17 flag. Example:
gcc -Wall source.c -std=c17 -pedantic
The C17 standard is sometimes also referred to as the C18 standard. The C17 standard will be replaced by the upcoming standard, informally referred to as the C2X standard.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2021 Slobodan Dmitrović
About this chapter
Cite this chapter
Dmitrović, S. (2021). The C17 Standard. In: Modern C for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6643-4_34
Download citation
DOI: https://doi.org/10.1007/978-1-4842-6643-4_34
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-6642-7
Online ISBN: 978-1-4842-6643-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)