A function is defined as the region or a boundary of the program in which a variable or a function is visible is know as the Scope of the variable.
Type of Scope in C++.