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()
Explain what is enumerated data type?
in cpp i am having class person what is the meaning of "person &person::greater(person &x)"
What is encapsulation and data abstraction?
Explain the meaning of reference variable?
Explain what is function prototype?
Explain what is dynamic initialization of the variables?
give me specifically only the significance of this pointer
Specify some of the operators which are available in C++?
Explain any of the four applications of OOPS.
18,76,764
1931637 Asked
3,689
Active Tutors
1434925
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!