Search | View Active Threads | View New Posts
Current Time: 05:37 AM

 

+ Reply to Thread
Results 1 to 5 of 5
  1. #1

    What are C++ storage classes?

    auto
    register
    static
    extern
    auto: the default. Variables are automatically created and initialized when they are defined and are destroyed at the end of the block containing their definition. They are not visible outside that block

    register: a type of auto variable. a suggestion to the compiler to use a CPU register for performance

    static: a variable that is known only in the function that contains its definition but is never destroyed and retains its value between calls to that function. It exists from the time the program begins execution

    extern: a static variable whose definition and placement is determined when all object and library modules are combined (linked) to form the executable code file. It can be visible outside the file where it is defined.

  2. #2
    Join Date
    May 2019
    Location
    Bangalore
    Posts
    107
    A variable's storage class gives information about the storage location of variable in memory, default initial value, scope of the variable and it's lifetime. Storage class specifiers supported in C++ are auto, register, static, extern and mutable.


    Preschool in K Narayanpura | Preschool & Day Care in K Narayanpura | Top 10 Play Schools in K Narayanpura | Best Pre-Nursery in Thanisandra | Best Day Care Centers in Kothanur |
    Preschool in Nagavara | Top Play schools in K Narayanpura

  3. #3
    Join Date
    May 2018
    Posts
    131
    Storage Classes are used to describe the features of a variable/function. These features basically include the scope, visibility and life-time which help us to trace the existence of a particular variable during the runtime of a program.

    Black magic in Toronto | Psychic reading Toronto | Indian psychic astrologer | Free psychic reading Canada | fortune teller in Toronto | psychic readings in scarborough | Best Astrology Services in Canada | Best Indian Astrologer in Toronto | Astrologer in Canada

  4. #4

    MVNO Consulting

    Storage class specifiers supported in C++ are auto, register, static, extern and mutable. This is the default storage class we have been using so far. It applies to local variables only and the variable is visible only inside the function in which it is declared and it dies as soon as the function execution is over.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  

Sponsors

Domain Escrow Services
Trellian Direct Search Network
Above.com Domain Registrar, Marketplace and Revenue Optimizer

Industry Events

11-14 August 2019
Affiliate Summit East
New York, NY

4-6 March 2019
LeadsCon
Las Vegas

15-18 September 2018
MERGE 2018
Orlando, FL

Poll

How do you invest in domains?
to see the Poll results!
DomainState.com
Domain Tools | Domain Directory | Registrar Stats | Domain Glossary | Industry Events | FAQ | Members | Terms | RSS | Link To Us | Advertise | Contact Us
Other Related Trellian Services:
Above.com Registrar  |  Above.com Marketplace  |  Above.com Domain Manager  |  Free Search Toolbar  |  Free Webpage Builder  |  Keyword Research
Direct Search Navigation  |  Search Engine Submission and SEO Tools
Copyright © 2002 DomainState.com a Trellian Company 2014 Bronze Sponsor - Internet Commerce Association