answersLogoWhite

0


Best Answer

Global Variables

Or: variables with names longer than 128 characters.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When possible you should advoid using what variables in a program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Define briefly about procedures and macros in microprocessor?

Procedures-Procedure is the set of codes written in other module used 2 solve a specific task and can be included in the main program when an instruction CALL is used in the program. Macro is also the set of codes used in the 'main program' or same module used to solve a specific task. Macros can be called in the program with the syntax using syntax-MACRO_NAME(actual variables). But the macros should be included in the program with the syntax MACRO_NAME(dummy variables). Dummy and actual variables should match.


What is called when a data value appears directly in a statement?

It can be called hard coding the data. For many things in computing it should be avoided if possible in favour of using variables or defined constants, in order to give more flexibility and structure to a program.


Where does global static local register variables free memory and C Program instructions get stored?

* These are all implementation defined. Access to `register' specified indentifiers should be as fast as possible, so the compiler may place the value in a machine register. However, the compiler is free to treat a `register' declaration as an `auto' declaration. * Where free memory is maintained is an OS specific concept. Instructions are generally stored in code segement. Local Variables are stored in Stack. Register variables are stored in Register. Global & static variables are stored in data segment. The memory created dynamically are stored in Heap And the C program instructions get stored in code segment.


What are all the variables?

There are 'constant variables' , 'independant variables' and 'dependent variables' Constant Variable- things in the experimment that should be kept the same Independant variables- something that can be varied in an experiment Dependant variable- something that can be affected


Why structure variables cannot be compared?

They can be compared with memcmp, but you should be careful if your structures contain:- pointers- alignment gaps- numeric variables (byte order!)- nested structures/unions

Related questions

When possible you should avoid using variables in a program.?

global


Should you advoid ice cream during weight training?

absolutely not..in moderation...


When is better to use global variables rather than utilizing local variables in a program?

In my opinion it is rarely a good idea to use global variables, unless you need to refer to them across modules, or their values need to be keep for a long period of program execution. Local variables should always be used when their lifetime is short, usually only in the module they are declared in. Global variables lifetime will be for the length of the program execution.


Define briefly about procedures and macros in microprocessor?

Procedures-Procedure is the set of codes written in other module used 2 solve a specific task and can be included in the main program when an instruction CALL is used in the program. Macro is also the set of codes used in the 'main program' or same module used to solve a specific task. Macros can be called in the program with the syntax using syntax-MACRO_NAME(actual variables). But the macros should be included in the program with the syntax MACRO_NAME(dummy variables). Dummy and actual variables should match.


What is the best number of variables for a scientific investigation?

In an experiment containing a number of possible variables only one of these should be altered in each individual experiment. Otherwise it is not possible to determine which variable is responsible for a particular change.


What is called when a data value appears directly in a statement?

It can be called hard coding the data. For many things in computing it should be avoided if possible in favour of using variables or defined constants, in order to give more flexibility and structure to a program.


Why should as many as possible variables be changed at a time?

They shouldn't, ever. It defies the whole point of a controlled experiment.


You dated and now are friends but you are not sure you should be any more what should you do?

Then you should just stop being friends and tell them that you don't want to hang out with them anymore, because it's lame to just run away and advoid people.


How many variables should there be in a good experiment?

There should be one dependent variables. Depending on the type of research you are doing, the amount of independent variables will change. If you are doing research on a large scale, you will use more independent variables. If it's on a small scale, you will use very little. If you are not able to run your regression it means your sample size is too small or you have too many independent variables.


Where does global static local register variables free memory and C Program instructions get stored?

* These are all implementation defined. Access to `register' specified indentifiers should be as fast as possible, so the compiler may place the value in a machine register. However, the compiler is free to treat a `register' declaration as an `auto' declaration. * Where free memory is maintained is an OS specific concept. Instructions are generally stored in code segement. Local Variables are stored in Stack. Register variables are stored in Register. Global & static variables are stored in data segment. The memory created dynamically are stored in Heap And the C program instructions get stored in code segment.


What are the necessary condition for a deadlock?

1) An environment that allows more than one program to access the same set of variable. 2) The ability of a program to "sleep" until it can have (access) a varible. 3) The ability of a program to block other programs from having (accessing) a variable. Dead Lock example: Program GoodGosh and GoshDarn both access variables A and B by "Locking" the variables, doing some processing, and then releasing the variables. Both variables have to be obtained and locked before further processing and unlocking can occur. While processing, Program GoodGosh acquries a lock on variable A and then attempts to acqure a lock on Varable B. Before GoodGosh can acquire variable B, Program GoshDarn acqures a lock on variable B. GoodGosh want B and owns A. GoshDarn owns A and wants B. Neither can process further until the other releases a variable. Deadlock now exists. Note: To prevent deadlocks, all modules/programs that access the same set of variables should always acquire the variables in the same order.


Who should you contact to report a possible vulnerability to you organization's mission?

OPSEC program manager,Supervisor, Commander/director