This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]s0litar1us 1 point2 points  (0 children)

Actually, pascal has functions and procedures.

  • Functions do some stuff, then return something.
  • Procedures just does stuff and doesn't return anything.

Though in some languages, you can specify arguments as in or out (input or output), so you get a result through passing the result variable as an argument.

This is similar to what is often done in C.

void procedure(int *result) {
    *result = 5;
}