answersLogoWhite

0

What else can I help you with?

Related Questions

What are Static variables in c?

A static variable in C is a variable whose value and memory allocation persists throughout the execution of the program. If the variable is declared at file scope (outside of any blocks) the static attribute means the variable is visible only to the file containing it, i.e. it can not be referenced through an extern reference in a different file.


What can you change in a variables?

In programming, you can change the value of a variable, which is essentially assigning a new value to the variable. The type of data a variable can hold is typically fixed after it's declared, but the actual value can be updated as needed during the program's execution.


How are global variable different from local variable in Visual BASIC?

A global variable is available for use throughout the program. It is normally declared outside any procedure. A local variable is only available for use in the procedure it was declared in. Most variables are local, but there will be occasions when you want different procedures to be able to use the same variable. This is when you use a global variable.


If the variable flag can only be declared once in the program it was declared as what type of variable?

It's a global variable.


When a variable is declared within a method it ceases to exist when the method ends true or false?

It really depends on the programming language, but in general, this is true. In Java, for example, the scope of a variable declared in a method is the method - outside of the method it is inaccessible, and once the method finishes execution, the variable disappears.


What is the difference between variable declared inside the declaration part and variable declared in scriptlet part?

Variable declared inside declaration part is treated as a global variable, which means after translation of jsp file into servletthat variable will be declared outside the service method as an instance variablethe scope is available to the complete jspVariable declared inside a scriplet will be declared inside a service method as a local variable and the scope is with in the service method.


Is variable representing the value being manipulayed or changed?

A variable is a placeholder that represents a value in computer programming. It can store different values depending on the context and can be manipulated or changed throughout the program execution.


Why all variables are declared with in the function?

It is not necessary to to declare variables inside the function in C. If you declare a variable inside a function, the variable becomes local for the function and another variable of same name can be declared in any other function, but you can not use the variable declared in other function. When you declare any variable outside the function body then the variable becomes global and can be used in any function of the program. Note: errno is an example for a variable declared outside any function.


A variable known only to the procedure in which it is declared is called what?

a procedure-level variable


What is the difference between a static variable a global variable and a local variable?

A static variable is a variable allocated in static storage. A local variable is a variable declared inside a function. A global variable is a variable declared outside of any class or function. Note that local variables and global variables can both be allocated in static storage.


What variable hasvalue that is read only and cannot be change during the program execution?

A constant is a variable with a value that is set at the time of declaration and cannot be changed during program execution.


What is the name of the variable that stays the same?

A constant is a variable that doesn't change in value throughout the program's execution.