© 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_35

35. The Upcoming C23 Standard

Slobodan Dmitrović1  
(1)
Belgrade, Serbia
 

At the time of writing, there is a new C standard in the making, informally referred to as the C23 or C2X. The standard will probably be published in 2024, with a working draft now available. Currently, we can install gcc version 13 or higher to try out some of the C23 features. We need to include the -std=c2x flag in the compilation string when targeting the C23 standard.

35.1 constexpr

Starting with C23, objects marked with constexpr are constants whose value is determined during the compilation time. ...

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.