answersLogoWhite

0


Best Answer

C: static

other: (default)

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What variable scope is preferable in modules to avoid overwriting existing data?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why use static variable in programming language?

For C programming, the use of a static variable has two uses: One reason is to hide the variable from other modules. The scope of the static variable is limited to the compilation unit that it is described in. The second use of a static variable is to keep the value of the variable intact through the entire program execution unit.


What is Global variables in vb6?

Global variables are accessible through your project. Different classes, modules, and interfaces can access a variable if it is global. A Global Variable can simply be declared by putting the word Public in front of the variable. Here is an example. Public V As String Now anything in your whole entire project can access the variable V.


How are coupling and cohesion related to modular design?

Ideally, modules will have low coupling and high cohesion. Coupling describes the strength of the connection between modules in a program. Loose (or low) coupling occurs when modules do not depend on other modules. One way to control this is by avoiding the use of global variables and reducing the number of variables that are passed between the modules. Another is to limit the depth of module calls (where a module calls another module, that then calls another module, and so on). Cohesion is a measure of how well a module accomplishes the module's purpose. High cohesion implies that all the module's internal statements serve to perform the module's (single) task. In order for modules to work together, there must be some connection between them. The nature of the connection is important because it determines the extent to which the modules are coupled. How are they connected? The best way to connect them is to pass the value of a local variable in one module to a second module through its parameter list. (A local variable is a variable that is defined within a module (not a parameter) is local to that module. The values of local variables are not available outside of the module in which they are declared unless they are passed. Local variables are reset to their default values once control leaves the module in which they are declared.) Another way to share information is through the use of global variables. (A variable that is defined outside of a module and that does not need to be passed to a module to be accessed by it is a global variable. Global variables retain their value once control leaves the module in which they are referenced. ) Because the value of a global variable can be changed by any module without passing, it increases the coupling between modules.


What are the differences between a global variable and macro?

A global variable is a place of data storage which multiple modules of application (sometimes all modules) can access to read and modify the variable's content. A macro is something altogether different. A macro is a set of instructions, typically used to save keystrokes when coding, and to maintain code readability. While macros can reference, declare or use variables (including global variables), macros and variables are quite different and cannot be compared.


What is the voltage level on the output modules?

It could be anything from 1.5 v to a megavolt, depending on the nature of the power modules.

Related questions

A variable that is used in all program modules is?

global


Why use static variable in programming language?

For C programming, the use of a static variable has two uses: One reason is to hide the variable from other modules. The scope of the static variable is limited to the compilation unit that it is described in. The second use of a static variable is to keep the value of the variable intact through the entire program execution unit.


What is Global variables in vb6?

Global variables are accessible through your project. Different classes, modules, and interfaces can access a variable if it is global. A Global Variable can simply be declared by putting the word Public in front of the variable. Here is an example. Public V As String Now anything in your whole entire project can access the variable V.


How are coupling and cohesion related to modular design?

Ideally, modules will have low coupling and high cohesion. Coupling describes the strength of the connection between modules in a program. Loose (or low) coupling occurs when modules do not depend on other modules. One way to control this is by avoiding the use of global variables and reducing the number of variables that are passed between the modules. Another is to limit the depth of module calls (where a module calls another module, that then calls another module, and so on). Cohesion is a measure of how well a module accomplishes the module's purpose. High cohesion implies that all the module's internal statements serve to perform the module's (single) task. In order for modules to work together, there must be some connection between them. The nature of the connection is important because it determines the extent to which the modules are coupled. How are they connected? The best way to connect them is to pass the value of a local variable in one module to a second module through its parameter list. (A local variable is a variable that is defined within a module (not a parameter) is local to that module. The values of local variables are not available outside of the module in which they are declared unless they are passed. Local variables are reset to their default values once control leaves the module in which they are declared.) Another way to share information is through the use of global variables. (A variable that is defined outside of a module and that does not need to be passed to a module to be accessed by it is a global variable. Global variables retain their value once control leaves the module in which they are referenced. ) Because the value of a global variable can be changed by any module without passing, it increases the coupling between modules.


Manager ask you to determine how existing module can be reused What if your first suggestion is to break each module with coincidental cohesion into separate modules with functional cohesion.?

By breaking the existing module with coincidental cohesion into separate modules with functional cohesion, we can increase reusability by ensuring that each module focuses on a specific and independent function. This approach will make it easier to reuse individual modules in different parts of the system or in future projects without the need to modify the entire module. It also promotes maintainability and flexibility in the codebase.


What are the modules or different modules of embedded system?

what r the modules


What tool would a programmer use to visualize the relationship between modules?

D. hierarchy chartPage 83Tony Gaddis


Can someone tell me how to access the RAM modules in a HP Compaq nx5000 notebook?

close the notebook and place it upside down, preferable on a table. you will notice the ram compartment if you look well and unscrew the screws and there you have access to your ram sticks.


How many times init method called if more then one instence are in servlet?

I have two questions how many times a method, modules or subroutines can be called? in most languages, how a variable is passed to a method?


What are three memory modules?

RAM (Random Access Memory), SIMMs (Single Inline Memory Modules), DImms (Dual Inline Memory Modules), RIMMs (Rambus Inline Memory Modules).


Which are the technical modules of oracle apps?

There are four modules ,which known as Oracle Apps technical modules . These are:System AdministratorApplication Object LibraryWorkflowAlerts


What are some options for making kitchens more mobile?

There's no need to "make" existing kitchens more mobile. Instead, there are specific modules for rent called mobile kitchens. Check out an example: http://mobilekitchens.com/ .