answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

What is automatic variable and what is its use?

It is a local variable known only to the function in which it is declared. Auto is the default storage class.


Value of automatic variable that is declared but not intialized?

The value of an automatic variable that is declared but not initialized is indeterminate.Some debug implementations will preset uninitialized variables to a known state, such as 0xcccccccc, or my favorite, 0xcacacaca, but that is just a hint that you are doing something very, very wrong if you ever encounter such a value.


What is the scope of any variable?

The Scope of a variable defines the areas of a program where this variable would be visible and can be used. For ex: a. Method variables - are visible only inside the method where they are declared and hence their scope is only the method b. Class variables - are visible inside the class and can be used by any method inside the class and hence their scope is the whole class.


Can you use extern and static together?

Storage classes are used to indicate duration and scope of a variable or identifier. Duration indicates the life span of a variable. Scope indicates the visibility of the variable. The static storage class is used to declare an identifier that is a local variable either to a function or a file and that exists and retains its value after control passes from where it was declared. This storage class has a duration that is permanent. A variable declared of this class retains its value from one call of the function to the next. The scope is local. A variable is known only by the function it is declared within or if declared globally in a file, it is known or seen only by the functions within that file. This storage class guarantees that declaration of the variable also initializes the variable to zero or all bits off. The extern storage class is used to declare a global variable that will be known to the functions in a file and capable of being known to all functions in a program. This storage class has a duration that is permanent. Any variable of this class retains its value until changed by another assignment. The scope is global. A variable can be known or seen by all functions within a program.


What is an example of a logical procedure?

A logical procedure is any procedure that identifies the unknown from the known.For example, a procedure that returns the maximum of any two given values has two known variables (the given values) and one unknown variable (the result). By logically examining the known, the unknown can be determined.Given the values x and y, the logical process can be reduced to the following pseudocode:If x is greater than y then return x otherwise return y.In C++, we'd encode this logical procedure as follows:template T& Max( T &x, T &y ) { return( x>y?x:y ); }

Related Questions

What is automatic variable and what is its use?

It is a local variable known only to the function in which it is declared. Auto is the default storage class.


What is a mathematical procedure that predicts the dependent variable on the basis of knowledge known about independent variables?

regression analysis


Value of automatic variable that is declared but not intialized?

The value of an automatic variable that is declared but not initialized is indeterminate.Some debug implementations will preset uninitialized variables to a known state, such as 0xcccccccc, or my favorite, 0xcacacaca, but that is just a hint that you are doing something very, very wrong if you ever encounter such a value.


What is the scope of any variable?

The Scope of a variable defines the areas of a program where this variable would be visible and can be used. For ex: a. Method variables - are visible only inside the method where they are declared and hence their scope is only the method b. Class variables - are visible inside the class and can be used by any method inside the class and hence their scope is the whole class.


What is the one thing YOU can change in an experiment also called the manpulative variable?

The variable that you, as the experimenter, deliberately change or manipulate is known as the independent variable. This is the variable that you believe will have an effect on another variable, which is the dependent variable.


What is the variable that is changed by the experimenter in a experiment?

The variable that is changed by the experimenter in an experiment is called the independent variable. This variable is manipulated or controlled by the experimenter in order to observe its effect on another variable, known as the dependent variable.


What is the name of the variable that's used to predict another variable?

The variable that is used to predict another variable is usually called the "independent variable" or the "predictor variable." This variable is manipulated or controlled in an experiment to observe its effect on the outcome variable, which is known as the "dependent variable."


The part of an experiment that does not contain the variable is known as?

this group is called the control group. the one that changes is called the variable. as in, it can vary. :) hope this helps!


What are process parameters?

A process parameter refers to the current status of a procedure under control. It is also known as a process variable or process value.


A variable measured in an experiment?

The variable measured in an experiment is called the dependent variable" the outcome factor". In contrast, the independent variable is the experimental factor that is manipulated; the variable who effect is being studied.


What is the one variable that is changed in an experiment to test a hypothesis?

The one variable that is changed in an experiment to test a hypothesis is called the independent variable. This is the variable that the researcher manipulates or controls to observe its effect on another variable, known as the dependent variable.


In a scientific study the variable that is influenced by another variable is known as?

When a variable is directly influenced by another variable it is known as a dependent variable. Conversely, a variable that isn't directly affected by another variable is known as a independent variable.