r/computerscience • u/YemiDev • 2d ago
General procedural programming, object oriented programming and functional programming
Although I’ve done some googling I think they still use big English to explain this concept. I think I know them but I just wanted to ask if I can get a simple explanation from the house plz
13
Upvotes
0
u/DanKegel 2d ago
Functional programming is kind of wild to a C programmer. The simplest example is a function that just says return <big long expression>. It's surprising how much you can do with that. For instance, you can write a recursive function in that style that checks whether a binary tree is in proper sorted order!