Computer Science, asked by mohin00, 6 months ago

a variable defined inside a function or block is called ____ variable​

Answers

Answered by shefalibiswas1982
1

Answer:

A VARIABLE DEFINED INSIDE A FUNCTION OR BLOCK IS CALLED LOCAL VARIABLE.

Answered by AadilPradhan
0

A variable defined inside a function or block is called local variable​.

  • Local variables are those that are declared inside a function or block.
  • Only statements included within that function or code block are permitted to use them.
  • Outside of their own function, local variables are unknown.
  • While local variables may have a lexical (static) or dynamic scope, the former is much more typical.
  • In lexical scoping, also known as static scoping or static scope, a variable name's scope is the programme text of the block definition if the variable name's scope is a specific block.
  • Outside of that block's text, the variable name does not exist but is bound to the variable's value.

Hence, the answer is local.

#SPJ2

Similar questions