Programming Functions and why are they so special

794 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

A void function (one that does not return a value) can be seen as a programmed routine. Most of the time, these functions are used to call other functions or to create/destroy global variables.

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