+ 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++

21st Jul 2019, 7:41 AM
Merlyn J
1 Respuesta
+ 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.
21st Jul 2019, 9:50 AM
mhb