Strongly typed language

Updated: 11/16/2019 by Computer Hope
strongly typed computer language

A programming language that requires a variable to be defined, as well as the variable it is. For example, C is a strongly typed language. When declaring the variable, you must also specify the variable type.

In the following example, the test variable is declared as three variable types.

  1. An integer in the first line.
  2. A floating point in the second line.
  3. A character in the third line.
int test = 25;
float test = 2.3;
char test = 'e';

The opposite of a strongly typed language is a loosely typed language, such as Perl.

Loosely typed language, Programming terms