In computer science, a local variable is a variable that is given local scope. Local variable references in the functionor block in which it is declared override the same variable name in the larger scope. In programming languages with only two levels of visibility, local variables are contrasted with global variables

local variables:

The variables which are declared within the scope and are initialized at run time are called dynamic local variables.

Example in c

int main()

{

    int x;

    scanf("%d",&x);

}

You have no rights to post comments