~/talk

Programming in Modern C with a Sneak Peek into C23

Talkat ACCU 2023 · 2023-04-19..04-22· [c-and-cpp]
links:none on file
slides:none on file

C shows concrete, modern tricks: compound literals enable in-place default-argument–style structs and zeroing (example prints 42 and even Unicode); designated initializers let sparse or out-of-order field setup (an initializer list produces an array size of 12 in the demo); flexible array members replace two mallocs with one contiguous allocation. Examples use GCC trunk and Compiler Explorer (C23 landed last week, _Bool became a keyword); generic selection macros and VLA/static array parameter checks (malloc size for a 10x10 int array = 400 bytes) are demonstrated.

AI-written summary · about

  1. 0:00Welcome to modern C
  2. 6:03What modern C means
  3. 9:30C quirks quiz
  4. 19:46Designated initializers
  5. 31:23Arrays in modern C
  6. 49:51Compound literals and zeroing
  7. 1:04:26Flexible array members
  8. 1:09:43Macros and generic selection
  9. 1:16:32Live refactoring to modern C
  10. 1:27:11Summary
~/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.