+1

What does the scope resolution operator '::' do in c++? Why do we have to use it while declaring the function outside the class?

'::' scope resolution operator in c++

7/21/2019 7:41:30 AM

merlynnoel25

1 Answer

New Answer

+1

The :: (scope resolution) operator is used to get hidden names due to variable scopes so that you can still use them. The scope resolution operator can be used as both unary and binary. from: tutorialspoint.com In other words, with this operator you are pointing to the source of that function.