© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
S. DmitrovićModern C for Absolute Beginnershttps://doi.org/10.1007/979-8-8688-0224-9_33

33. Introduction to C11 Standard

Slobodan Dmitrović1  
(1)
Belgrade, Serbia
 

The C11 standard, formally known as ISO/IEC 9899:2011, was a C standard adopted in late 2011. The C11 standard replaced the C99 standard and was superseded by C17. C11 introduces new features to the C language and C standard library and modifies a few existing ones. Here, we discuss some of the notable features.

33.1 _Static_assert

The _Static_assert performs assertion during compile time before our program starts. The static assertion has the following syntax:
_Static_assert(expression, message);

Get Modern C for Absolute Beginners: A Friendly Introduction to the C Programming Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.