Chapter 15: C99, C11, and Beyond
Explore modern C standards and their features.
Chapter 15: C99, C11, and Beyond
Table of Contents
- Table of Contents
- 15.1 C99 Features
- 15.2 C11 Features
- 15.3 Portability and Compatibility
- 15.4 Exercises
- 15.5 Solutions
- 15.6 What’s Coming in the Next Chapter
15.1 C99 Features
- Variable declarations anywhere
- Inline functions
- New data types (
long long
,_Bool
)
15.2 C11 Features
- Multithreading support
- Static assertions
- Anonymous structures/unions
15.3 Portability and Compatibility
- Use feature test macros
- Check compiler support
15.4 Exercises
- Name a new data type introduced in C99.
- What is a static assertion?
- How do you check if a feature is supported by your compiler?
15.5 Solutions
15.5.1 Solution 1
long long
, _Bool
15.5.2 Solution 2
A compile-time check using _Static_assert
.
15.5.3 Solution 3
Use feature test macros or check documentation.
15.6 What’s Coming in the Next Chapter
Congratulations! You’ve completed the main chapters. Next, explore the appendices for more resources and practice!
This post is licensed under CC BY 4.0 by the author.