It is perfectly legal to assign a number to a variable and then assign a string to the same variable as followsexample
i = 10;
i = “string”;
This is called variable typing
Technical Interview Questions
It is perfectly legal to assign a number to a variable and then assign a string to the same variable as followsexample
i = 10;
i = “string”;
This is called variable typing