~/talk

"New" Features in C

Talkat NDC TechTown 2019 · 2019-09-02..09-05· [c-and-cpp]
slides:none on file

Many C projects still target C90 but newer standards actually add usable features and important portability traps. C99/C11 introduce fixed-width and "at least" integer types via <stdint.h>, full complex arithmetic and compound literals, and inline functions that require an extern definition in one .c to produce a single non-inline copy. Variable-length arrays become optional in C11 and can make sizeof non-constant, while restrict pointers enable aggressive aliasing optimisations but make overlapping buffers undefined behavior. Flexible array members and designated initializers simplify packed headers and sparse array setup.

AI-written summary · about

  1. 0:00Intro
  2. 1:54C Standards Timeline
  3. 3:30Undocumented Identifiers
  4. 5:07Reserved Identifiers
  5. 9:06Version Detection
  6. 11:59C99 Features in Common with C++
  7. 18:20Minimum Width Integer Types
  8. 20:04Fastest Integer Types
  9. 22:00Other Extended Integer Types
  10. 27:01Relaxed Declaration Ordering
  11. 34:03Inline Functions
  12. 38:59Complex and Imaginary Types
  13. 42:27Compound Literals
  14. 45:23Designated Initializers
  15. 53:15Flexible Array Members
  16. 56:15Restricted Pointers
  17. 58:40Type-Qualified Array Parameters
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.