Subroutines vs. Functions
2025-05-29
TL;DR
CPUs implement subroutines at the hardware level, not functions in the mathematical sense.
Subroutines and functions are both reusable blocks of code, but they differ in a key way: return values.
In C, there isn't technically a separate "subroutine" construct - everything is a function.
Computer Science is fundamentally about mathematical functions and computational processes, not CPUs specifically.
Claude 4.0’s answers to the above questions...
See Also
Email: ptcomputingsimplicity@gmail.com
References: https://guitarvydas.github.io/2024/01/06/References.html
Blog: guitarvydas.github.io
Videos: https://www.youtube.com/@programmingsimplicity2980
Discord: https://discord.gg/65YZUh6Jpq
Leanpub: [WIP] https://leanpub.com/u/paul-tarvydas
Gumroad: tarvydas.gumroad.com
Twitter: @paul_tarvydas
Substack: paultarvydas.substack.com

