Answer Posted / vikram
scope resolution operator(::) is used to define member
functions outside the class,that is we are defining the
member functions explicitly.
Scope resolution operator is also used to access the
globally declared variables.
for example,
#include<iostream.h>
int a=20;
main()
{
int a=10;
cout<<a<<endl<<::a;
}
here,the output will be:
10
20
thnx
Is This Answer Correct ? | 38 Yes | 6 No |
Post New Answer View All Answers
What is a null tree?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is data binding in oops?
What do you mean by abstraction?
What are the components of marker interface?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is abstract class in oops?
What is this pointer in oop?
Write a program to reverse a string using recursive function?
Can you inherit a private class?
what is difference between class template and template class?
What are main features of oop?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
write a program that takes input in digits and display the result in words from 1 to 1000
Is enum a class?