Programming Functions and why are they so special

795 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

An example of a `void` function might be one that just prints some text, like a really basic info/welcome message that never changes — you don’t need a return value from that.

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