Here, I'll show you with an example. I'll use Pascal as the language for it's fairly similar across most languages.
(Original post by john.harvey93)
Apologies for what might seem a really dumb question - I'm learning the AS with a friend as our sixth form doesn't offer Computing.
What does it mean when a subroutine is *called* or when a recursion "calls" itself?
procedure example_procedure (arguments) //declaring the procedure
example_procedure(arguments) // calling the procedure from within itself is called recursion
end; //procedure is over
begin // main body of code
var example_integer : integer; //declaring a variable type integer
example_integer = example_procedure(example_integer) //calling the procedure with argument
end. //program is over
Hope this helped, I just got up and I'm writing this from an extremely laggy iPhone. If there are mistakes, someone please correct them.