+0 -0
Local Variable:
Local Variable are the variable that are having Local scope and that variable are declare within or inside the function or block and also accessible within or inside function or block.
Global Variable:
Global variable are the variable that is having Global Scope and that is created outside the function and accessible everywhere in the program.
+0 -0
Local variables are declared and used within a function or block. Global variables are declared outside any function and can be accessed by any part of the program. Local variables are not visible outside their scope, while global variables can cause conflicts or errors if modified by different functions.