What is scope resolution operator
Explain what is meant by the term scope resolution operator?
Expert
a) Scope resolution operator is used in order to uncover the hidden variables. It also enables access to the global version of the variables.
For example:
#include<iostream. h> int m=10; // global variable m void main ( ) { int m=20; // local variable m cout<<”m=”<<m<<”\n”; cout<<”: : m=”<<: : m<<”\n”; }
output: 20 10 (: : m access global m)
b) Scope resolution operator is also used in order to describe the function outside the class.
Syntax:
Return type <class name> : : <function name>
Eg:
Void x : : getdata()
Provide any four benefits of OOPS.
Describe 2 opearions that can be performed on a queue data structure
how to write math server and client socket programming in c++?
Explain what is return type of the main ()?
Describe the basic concepts of the OOPs?
Explain the term dynamic binding or late binding?
Specify some of the benefits of new operator over the malloc ().
Explain what are manipulators?
Explain four basic sections within the typical C++ program.
Explain the term class?
18,76,764
1936929 Asked
3,689
Active Tutors
1417034
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!