---
title: "function"
type: concept
related: [Function, Generic]
source: https://www.jemoka.com/posts/kbhfunction/
confidence: high
status: active
---

function pointers typedef bool (*should_swap) (int, int); all function&rsquo;s names are pointers to first address of the function&rsquo;s machine code in memory.
When writing a generic function, if we don&rsquo;t know about the behavior of something (such as comparison), etc., we have to rely on the client to specify the information in terms of a function.
function writer: writes algorithmic function, relies on caller data function caller: knows data, and doesn&rsquo;t know how algorithm knows
