~/talk

Reintroduction to C

Talkat NDC TechTown 2023 · 2023-09-18..09-21· [c-and-cpp]
slides:none on file

C is framed as the right tool for embedded firmware, OS and language runtimes, with concrete rules and gotchas: C99 guarantees implicit return from main, puts/printf return semantics and futile deep error checks, integer promotions (everything converts to int), pointer decays to address of first element and one‑past pointer arithmetic, designated initializers and compound literals, size_t for indexing, malloc/free with null checks and goto cleanup idiom (used in Linux kernel), static vs automatic storage, struct alignment padding (example size 24), and UB from unspecified evaluation order producing different outputs across compilers.

AI-written summary · about

  1. 0:00Introduction
  2. 5:23Hello
  3. 7:23Int
  4. 11:55Array
  5. 16:58SizeT
  6. 18:33GoTo
  7. 28:11Clean up
  8. 29:21Cooking
  9. 34:08Compounds
  10. 42:18Storage duration memory
  11. 45:45Static
  12. 51:02Memory
~/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.