What is the scope resolution operator? - C++

What is the scope resolution operator?

- It is used to define a function outside a class or when we want to use a global variable but also has a variable with same name.

- Scope resolution operator (::) allows a program to reference an identifier in the global scope that is hidden by another identifier with the same name in the local scope.

Syntax:
class_name :: identifier
namespace :: identifier

- This operator is used to identify the identifiers which is used in different scopes.
What are the advantages of inheritance? - C++
What are the advantages of inheritance? - Code reusability, Saves time in program development....
What is a conversion constructor? - C++
What is a conversion constructor? - It is a constructor that accepts one argument of a different type..
Advantages of inline functions - C++
Explain the advantages of inline functions - It relieves the burden involved in calling a function. It is used for functions that need fast execution.....
Post your comment