Respuesta :

Given statement 'a local variable is a variable defined inside a function that can only be used inside its function' is False

A local variable is a type of variable that we declare inside a block or a function, unlike the global variable. They can be used only by the statements that are inside the function or the block of the code. Local variables are not known to functions outside their own.

The variable declared is local within that function that is the declared variable is accessible inside that block itself, it cannot be accessible outside the given function.

Consider the following multiplication function:

ex - void multi()

{

int a = 10,  b = 2, c ;

c = a * b ;

cout << c ;

}

int main()

{

cout << "value for c is :"<< c ;

return 0;

}

Here inside the multi function variable a, b, c are declared and initialized inside the function.

Thus, a local variable is defined inside the body of the function and is not accessible outside of the function.

Therefore, given statement 'a local variable is a variable defined inside a function that can only be used inside its function' is False

Learn more about the local variable here:

brainly.com/question/27840441

#SPJ4