Programming Functions and why are they so special

797 views

I’m still trying to wrap my ahead around this concept.

I’ve done basic maths, so I know that f(x) = x is like a function, but I can’t find an intuitive way of explaining why some functions don’t have to return values. In addition, what separates functions from just lines of code?

In: Technology

12 Answers

Anonymous 0 Comments

The ones that don’t return anything are for being read by a person. Not read into. They are supposed to allow you to think instead of doing the math and then you can continue if you are doing it. A computer will only send to the screen in those events, and the rest of it is doing nothing by then. In otherwise, the computer may hold a chip that will expect to be receiving input and that will endanger the process become a “single” operation and not just a “dedicated” one.

You are viewing 1 out of 12 answers, click here to view all answers.