Javatpoint Logo
Javatpoint Logo

Scope Resolution Operator vs this Pointer

The scope resolution pointer and 'the' this pointer are crucial to implementing the effective C++ program and designing the object-oriented processes during the software development agile life cycle methodology. The scope resolution operator helps the developer access the class members or the static entities. On the other hand, the 'this' pointer helps us with local object member variables with the same name.

C++ code

Output:

3

C++ code

Output:

1

C++ code

Output:

1

C++ code

Output:

Hey! Coder, the number required is: 6






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA