CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS C++ VARIABLES IN C++ DETAILS
    Question :
    What?s the auto keyword good for?
    Category Variables in C++ Interview Questions
    Rating (0.4) By 682 users
    Added on 9/16/2009
    Views 1612
    Rate it!
    Answers:

    Local variables occur within a scope; they are ?local? to a function. They are often called automatic variables because they automatically come into being when the scope is entered and automatically go away when the scope closes. The keyword auto makes this explicit, but local variables default to auto auto auto auto so it is never necessary to declare something as an auto auto auto auto.




    Local variables occur within a scope; they are ?local? to a function. They are often called automatic variables because they automatically come into being when the scope is entered and automatically go away when the scope closes. The keyword auto makes this explicit, but local variables default to auto auto auto auto so it is never necessary to declare something as an auto auto auto auto



    Posted by: RAKESH THAKRE    

    Contact RAKESH THAKRE Contact RAKESH THAKRE

    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 can I safely assume about the initial values of variables which are not explicitly initialized?
    View Answer
    How do you decide which integer type to use?
    View Answer
    What is the difference between declaration and definition?
    View Answer
    What is an algorithm (in terms of the STL/C++ standard library)?


    View Answer
    what are auto static variables and auto extern variables?

    View Answer
    How is static variable stored in the memory?
    ( if there are 2 functions in a file,and the static variable name is same (ex var) in both the function. how is it keep seperately in the memory).

    View Answer
    What is difference between followin intialization.

    int iVar1;
    int iVar2 = int();

    and which one of two should we prefer always and why?

    View Answer
    I was trying to use an "out int" parameter in one of my functions. How should I declare the variable that I am passing to it?
    View Answer
    When you inherit a protected class-level variable, who is it available to?
    View Answer
    Are private class-level variables inherited?
    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 Variables in C++ Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 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