answersLogoWhite

0

Can an external variable is used in two c programme?

Updated: 8/18/2019
User Avatar

Wiki User

9y ago

Best Answer

No. A named variable is a reference to a value within the program's address space. Programs cannot share their variables. However, programs can share their memory addresses. The problem is that you then create an implicit dependency between the two programs. The memory has to be physically allocated to one of the programs, thus the other program becomes reliant upon that program being in memory at all times.

The best approach to sharing memory between processes is to use a dynamic library to provide both the shared memory and the marshalling (preventing one process from reading memory while another is writing to it). In this way the dependency can be made explicit to the dynamic library and the programs can be run independently of each other.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can an external variable is used in two c programme?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Suppose an external variable is defined outside of function A and accessed within the function Does it matter whether the external variable is defined before or after the function. Explain?

No the two work together REALLY


What is a regulated variable direct current?

Voltage regulators that are adjustable are common, for example the LM338, which can pass up to 5 amps with a suitable heat sink, and the output voltage is set by two external resistors connected to the regulator. A variable resistor can be used to make the output voltage directly adjustable.


What are the two kind of variable?

what are the two kinds of variable


Which two connectors are used to connect external peripherals?

Are USB and PS/2


What two ports are most often used to connect an external modem to a PC?

Serial and USB ports are most often used to connect an external modem to a PC.


What are the two types of external environment?

The two types of external organizational environments are the internal and the external organization environments.


What are the two types of external organizational environments?

The two types of external organizational environments are the internal and the external organization environments.


What are two examples of external stimuli?

Two examples of external stimuli are pain, and temperature.


What is one variable data What is two variable data?

One variable data are measurements or recordings of the values of one characteristic of the subjects which are being studied. Two variable data refer to two characteristics. Examples of one variable data: hair colour, or height Examples of two variable data: hair colour and eye colour, or height and mass.


What tv programme has two words 2 and 3 letters?

i do


What does variable held constant mean?

The distinction between these two types of variables is whether the variable regress on another variable or not. Like in a linear regression the dependent variable (DV) regresses on the independent variable (IV), meaning that the DV is being predicted by the IV. Within SEM modelling this means that the exogenous variable is the variable that another variable regresses on. Exogenous variables can be recognized in a graphical version of the model, as the variables sending out arrowheads, denoting which variable it is predicting. A variable that regresses on a variable is always an endogenous variable even if this same variable is used as an variable to be regressed on.


What is moderating variable?

Moderation occurs when the relationship between two variable depends on a third variable. The third variable is referred to as the moderate variable or simply the moderator