What is scope operator in c++?



What is scope operator in c++?..

Answer / Deepanshu Jetley

The scope operator in C++ is the colon (:) which defines the visibility or accessibility of a variable, function, or class. It helps to avoid name collisions by limiting the regions where identifiers can be accessed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Find the second maximum in an array?

12 Answers   HCL,


Explain the differences between private, public and protected and give examples.

1 Answers  


Explain the concept of memory leak?

1 Answers  


What is the auto keyword good for in c++?

1 Answers  


What is nested class in c++?

1 Answers  


What is lambda in c++?

1 Answers  


Program to check whether a word is a sub-string or not of a string typed

1 Answers  


Write bites in Turbo c++ Header ("Include") Files.

1 Answers  


What are guid? Why does com need guids?

1 Answers  


Can comments be longer than one line?

1 Answers  


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1 Answers  


Can you overload the operator+ for short integers?

1 Answers  


Categories