CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
182
You visited us 182 times! Enjoying our articles? Unlock Full Access!
Question

The scope resolution operator usually

A
Specifies a particular class
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
One base class and more than one derived class
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Resolve ambiguities
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
All of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C Specifies a particular class

The scope resolution operator usually specifies a particular class.

Scope resolution operator (::) in C++ programming language is used to define a function outside a class or when we want to use a global variable but also has a local variable with the same name.

The scope resolution operator is used to qualify hidden names so that we can still use them. We can use the unary scope operator if a namespace scope or global scope name is hidden by an explicit declaration of the same name in a block or class.



flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Tabular Presentation
STATISTICS
Watch in App
Join BYJU'S Learning Program
CrossIcon