Skip to main content

Practice · 4 of 4

Link Two Units by Hand

CHALLENGE
Difficulty: advanced+25 XP

Implement int cross_unit_total(void) that calls two of your own functions declared in a header-style block *above* their definitions' use (prototype int part_a(void); int part_b(void);) and returns their sum. This is the one-TU rehearsal of the two-object link: declarations satisfy the compiler, definitions satisfy the linker.

Back to lesson: Practice: Binary Forensics Drills