title: How to make function as argument in C without having a static function?
body: <p>In JavaScript, I could simply do something like <code>runCode((arg1) =&gt; { sampleFunction(arg1); })</code>, but I can't do that in C. I tried declaring functions in a function as a workaround (as I'm making a function that does stuff with only itself), but it doesn't seem to work.</p>