answersLogoWhite

0

Static Variable

A variable that exists in only one location and is globally accessible by all instances of a class and also a variable for which memory remains allocated as long as the program executes.

Global Variable

A variable that can be accessed by all parts of a program so it does not belong to any subroutine in particular and can therefore can be accessed from any context in a program

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Difference between declaring a variable and definition a variable?

Declaration is a promise: 'I will define (or has defined) this variable/function somewhere else'.


What is difference between struct variable and class object?

structure variable can access the variable but class object can access the function also


What is the difference between dependent and independent varibles?

An independent variable can be any of a given set of values while a dependent variable is represented as a function of another variable.


What is the difference between value type parameters and reference type parameters?

When a variable is passed by value, the function receives a copy of the variable. When a variable is passed by reference, the function receives a reference, or pointer, to the original data.


The difference between fixed and variable inputs?

difference between fixed and variable inputs


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 is the function of range?

The range is a measure of the difference between the maximum and minimum values that a variable can take, or that a function can take over the relevant domain.


What is the difference between multichannel and multidimensional signals?

if a signal is a function of single independent variable,then signal is called multichannel signal. if a signal is function of multiple independent variable then signal is called multidimensional signal.


Difference between variable resistor and rheostat?

The difference between a variable resistor and a rheostat is the same as the difference between six and half a dozen.


In IT What is the difference between a user variable and a system variable?

A user variable is a memory which is used in specific function or functionality. A system variable is kinda of generic, accessible to all users of the system. It does not bind to specific process as such.


What the difference between a variable and control?

The difference between a controlled variable and a variable is in their state. A controlled variable is something which is rigid and constant while a variable is liable to change and inconsistent.


What is the difference between random variable and random variate?

Random variables is a function that can produce outcomes with different probability and random variates is the particular outcome of a random variable.