Parameter (computer Programming) - Datatypes

Datatypes

In strongly typed programming languages, each parameter's type must be specified in the procedure's declaration. Languages using type inference attempt to discover the types automatically from the function's body and usage. Dynamically typed programming languages defer type resolution until run-time. Weakly typed languages perform little to no type resolution, relying instead on the programmer for correctness.

Some languages use a special keyword (e.g. void) to indicate that the subroutine has no parameters; in formal type theory, such functions take an empty parameter list (whose type is not void, but rather unit).

Read more about this topic:  Parameter (computer Programming)