Members of class can be declared with auto, extern or register storage classes - C++ basic concepts

Q.  Members of the class can be declared with auto, extern or register storage classes.
- Published on 17 Jul 15

a. True
b. False

ANSWER: False
 

    Discussion

  • ramesh   -Posted on 08 Oct 15
    Members of the class can be declared with auto, extern or register storage classes are false statement.
    There are following storage classes in a C++
    • auto
    • register
    • static
    • extern
    extern member declared outside the class. Once extern variable declared , it can be used anywhere in the program.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)