answersLogoWhite

0

Why is it that language is dynamic?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019
Dynamic typing means that the type of a variable is set when the program is run, not when it is compiled.

Python has dynamic typing, and strong typing. In the code one can write


a=5

b=6.7


and the interpreter will make a variable with an int type and b a float. However, unlike C, there is no way of typecasting a variable.


in C you would write

int a =5;

float b = 6.7;


The typing is done at compile time, but later you could write (float)a to typecast a to a float.


Some conversions however are automatic.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is language dynamics?

A dynamic language is a language that displays text in a dynamic, non-static, manner, without having to change the source of a file; dynamic languages can also perform a number of tasks, such as information retrievement and insertion. Dynamic languages are primarily used for modern computer applications. For example, a dynamic language may be used to output the name of a user, in which was entered through an HTML input element, and processed by the dynamic language to actually log the user in. A static language cannot do this.


What is the difference between static and dynamic programming?

in static programming properties, methods and object have to be declared first, while in dynamic programming they can be created at runtime. This is usually due to the fact that the dynamic programming language is an interpreted language.


Definition of static HTML?

HTML by its very nature is static. If you desire to have a dynamic site, that requires a coding language like PHP, ASP, or other dynamic language. These dynamic languages typically also use HTML to create the structure for a web page.


What is a CFML?

CFML is the ColdFusion markup language - basically, a markup language for building dynamic web sites. == ==


What is the expansion of the abbreviation dhtml?

Dynamic Hyper Text Markup Language


Full form of dhtml?

Dynamic Hyper Text Markup Language.


How is language dynamic?

Language is dynamic because it constantly evolves and changes over time. This can happen through the adoption of new words, shifting meanings of existing words, and the development of new grammar rules. Different factors such as cultural influences, technological advancements, and social changes all contribute to the dynamic nature of language.


Is language learning a dynamic process?

Yes, language learning is a dynamic process that involves ongoing interaction with the language through listening, speaking, reading, and writing. Language learners constantly adapt and adjust their language skills based on exposure to new vocabulary, grammar rules, and cultural context. Effective language learning requires practice, feedback, and a willingness to continue improving over time.


What is the PHP programming language?

PHP is a server-side scripting language mainly for processing a user's data-input and generating dynamic content.


What is dynamic programming language?

Dynamic programming languages are often refered to as 'weakly typed' which means that variables are not bound to a particular type until runtime. For example, C++ is a 'strongly typed language, while Perl is a 'weakly typed' or 'dynamic' language. A strongly typed language requires that you specify a type: int i = 0; In that C++ snippet, an integer names i is created and assigned the value of 0. The following would not compile in C++: int i = 0; i = "Hello world"; This would fail because i has been declared to be an integer and can not be assigned a string value. The following code would succeed in a dynamic language like Perl: i = 0; i = "Hello world"; The type is not declared here at all, because it is not bound to a type until runtime. In the first statement, i is bound to an integer type but in the second statement it is bound to a string type. While dynamic language are easier to program in, they are much slower than strongly typed languages and are generally regarded as less safe since checking is not done until run time.


Why dynamic binding is not possible for normal C functions?

Dynamic binding is certainly possible for normal C functions. Binding is a function of the binder (linker) and has nothing to do with the language itself.


What does the medical term dynamic instability mean?

Dynamic indicates with movement; instability means the same thing as in lay-language. A joint may be stable when someone is not using it, but may become unstable during normal use/movement. This is dynamic instability.