Minggu, 08 Januari 2017

What is the difference between Local and Global Variables in Programming

A variable is a memory location inside memory which is referred using a name. The value inside a variable changes throughout the execution of the program. Based on where the variable is declared in the program, variables can be divided into two types. They are: Local Variables Global Variables   Local Variables A variable is said to be a local variable if it is declared inside a function or inside a block. The scope of the local variable is within the function or block in which it was declared. A local variable remains in memory until the execution of the

The post What is the difference between Local and Global Variables in Programming appeared first on Coding Security.


What is the difference between Local and Global Variables in Programming
read more

Tidak ada komentar:

Posting Komentar