answersLogoWhite

0

Global (file scope) variable and static global variables both retain their value for the duration of the program's execution. Static global variables are visible only to functions within the file they are declared, while global variables are visible to all compilation units (files) within the linked load module.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

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.


Difference between greedy algorithm and dynamic programming?

the basic difference between them is that in greedy algorithm only one decision sequence is ever generated. where as in dynamic programming many decision sequences are generated.


What is the difference between backtracking and dynamic programming?

The only difference between dynamic programming and back tracking is DP allows overlapping of sub problems. (fib(n) = fib(n-1)+ fib (n-2)).


Distinguish detween static and dynamic gain from trade?

Distinguish detween static and dynamic gain from trade?


Is quick sort is an example of dynamic programming algorithm?

quick sort is a divide and conquer method , it is not dynamic programming


What is difference between linear and dynamic programming?

Dynamic programming (DP) has been used to solve a wide range of optimizationproblemsWhen solving a problem using linear programming, specific inequalities involving the inputs are found and then an attempt is made to maximize (or minimize) some linear function of the inputs.


What is variant variable?

A variant variable, often referred to in statistical contexts, is a type of variable that can change or vary in value across different observations or experiments. It is typically used to assess how changes in one variable (independent variable) affect another variable (dependent variable). In programming, a variant variable can also refer to a data type that can hold different types of data, typically used in languages that support dynamic typing.


What has the author Sven Dano written?

Sven Danoe has written: 'Nonlinear and dynamic programming'


What has the author Ronald A Howard written?

Ronald A. Howard has written: 'Dynamic Probabilistic Systems, Volume II' 'Dynamic programming and Markov processes' -- subject(s): Dynamic programming, Markov processes


What do you mean by variable and constant?

A variable is a symbol or name that represents a value that can change or vary within a given context, often used in mathematical equations and programming. In contrast, a constant is a fixed value that does not change, remaining the same throughout the context in which it is used. Both concepts are fundamental in mathematics, science, and computer programming, allowing for the representation of dynamic and static quantities.


What are the difference between greedy algorithm and dynamic programing?

A greedy algorithm is similar to a dynamic programming algorithm, but the difference is that solutions to the subproblems do not have to be known at each stage; instead a "greedy" choice can be made of what looks best for the moment.


What are the positives of dynamic programming?

There are several positives of dynamic programming. Dynamic programming allows a person to develop sub solutions for a large program. Having sub solutions makes it easier to maintain use of a program. Sub solutions also make it easier to debug a program.