Scope determines visibility of identifiers across function/procedure boundaries, code blocks and source files. The scope rules of a language decide in which part(s) of the program a particular piece of code or data item can be accessed.
There are five types of scopes in C++
Function
File
Block
Function Prototype
Class
LEARN MORE>>
No comments:
Post a Comment