CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - 9,000 Interview Que. & Ans.
Covers 9,000+ Interview Questions asked in actual MNC Interviews - all with model answers.
Get Your Dream Job Now - www.vyoms.com
Sponsored Links
Interview Questions
Our Services

INTERVIEW QUESTIONS LANGUAGES C++ DETAILS
Question :
How can a '::' operator be used as unary operator?

Category C++ Interview Questions
Rating (3.0) By 7 users
Added on 7/16/2015
Views 25
Rate it!
Answers:

The scope operator can be used to refer to members of the global namespace. Because the global namespace doesn?t have a name, the notation :: member-name refers to a member of the global namespace. This can be useful for referring to members of global namespace whose names have been hidden by names declared in nested local scope. Unless we specify to the compiler in which namespace to search for a declaration, the compiler simple searches the current scope, and any scopes in which the current scope is nested, to find the declaration for the name.



If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What are the main underlying concepts of object orientation?
    View Answer
    What do u meant by "SBI" of an object?

    View Answer
    Differentiate persistent & non-persistent objects?
    View Answer
    What do you meant by active and passive objects
    View Answer
    What is meant by software development method?
    View Answer
    Why does the function arguments are called as "signatures"?
    View Answer

    What is Memory alignment??
    View Answer

    When are temporary variables created by C++ compiler?
    View Answer
    When do use "const" reference arguments in function?
    View Answer

    What are storage qualifiers in C++ ?
    View Answer

    What are C++ storage classes?
    View Answer
    What is conversion constructor?
    View Answer
    What are all the implicit member functions of the class? Or what are all the functions which
    compiler implements for us if we don't define one.??
    View Answer
    When are copy constructors called?
    View Answer
    What is a Makefile?


    View Answer
    What does extern mean in a function declaration?
    View Answer
    Will it execute or not?

    C++ Interview Questions and Answers

    (Continued from previous question...)

    Will it execute or not?

    void main()
    {
    char *cptr = 0?2000;
    long *lptr = 0?2000;
    cptr++;
    lptr++;
    printf(? %x %x?, cptr, lptr);
    }Will it execute or not?


    View Answer
    How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
    Why is it difficult to store linked list in an array?
    How can you find the nodes with repetetive data in a linked list?
    View Answer
    What is the difference between Mutex and Binary semaphore?

    View Answer
    What methods can be overridden in Java?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL C++ Interview Questions & Answers

    User Options
    Latest 20 Questions
    What are the common properties Button controls used in ASP.NET?
    How to apply themes for asp.net application?
    What is the use of "HttpHandlers" in web.config ?
    What?s the difference between Linkbutton control and Hyperlink control?
    In ASP.NET how many navigation controls are there?
    List all different typesS of directives in .NET
    What are the State Management options in ASP.NET ?
    What is Global Assembly Cache ?
    What is the difference between ExecuteScalar and ExecuteNonQuery?
    What is the appSettings Section in the web.config file?
    List the major built-in objects in ASP.NET?
    What are the asp.net Security Controls?
    Explain the working of passport authentication.
    How can we apply Themes to an asp.net application?
    What are the event handlers that we can have in Global.asax file?
    Write code to send e-mail from an ASP.NET application?
    What are the different validators in ASP.NET?
    How to execute an sql query? How to fetch its result ?
    What is the difference between Session and Cookie?
    What are different types of Runtime Errors in PHP?


    Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0.015625 Seconds