181k views
0 votes
Variables defined inside a member function of a class have: Block scope. Class or block scope, depending on whether the binary scope resolution operator (::) is used. Class scope. File scope.

1 Answer

4 votes

Answer:

The answer is "Block scope".

Step-by-step explanation:

In the programming, the scope is a code, in which it provides the variable ability to exist and not be retrieved beyond variable. In this, the variables could be defined in 3 locations, that can be described as follows:

  • Inside a method or the block, which is also known as a local variable.
  • Outside of the method scope, which is also known as a global variable.
  • Defining parameters for functions known as formal parameters.
User Brian Noyes
by
7.7k points