Need some explanation regarding the weakly typed programming

Asked By 10 points N/A Posted on -
qa-featured

Hi guys ,I need some explanation about the concept of “weakly typed programming language” , and some examples of weakly typed languages

SHARE
Answered By 0 points N/A #93659

Need some explanation regarding the weakly typed programming

qa-featured

The weakly typed programming languages simply refers to those where it makes conversation with the unrelated types too but the   strongly typed programming languages restrict this and makes conversation with the related types only.It can be best described with some examples and I am going to try to give an example of perl  too as below:

$x=2;
$y="x";
$z=$x.$y;
print $z; #2x

Here x is a variable which is assigned a value of 2 but when we evaluate on line three it acted
like a string for the evaluation process.As the operator is used to work on string which is why the
number was converted to string.

Hope you understood the concept.

For any queries you can shoot me a pm 🙂

Login/Register to Answer

Related Questions