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 return type of the main ()?
Explain what are the data members and the member functions?
Explain the meaning of member-dereferencing operator?
Specify some of the benefits of new operator over the malloc ().
Hello I would like to know if the following assignment can be completed by Monday. I would like this program to be done in both C++. Thank You
Explain what are manipulators?
State Polymorphism.
Explain what is enumerated data type?
Describe what are symbolic constants?
Specify the rules for naming identifiers in the C++.
18,76,764
Questions Asked
21,311
Experts
9,67,568
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!