How do you initialize a class member,
class x {
const int i;
};

Answer Posted / anandam niranjan

i think it's not possible

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a function declaration, what does extern mean?

634


What is a c++ vector?

589


what is C++ objects?

668


How would you use the functions sin(), pow(), sqrt()?

736


How many characters are recognized by ANSI C++?

891






how to explain our contribution in the project?

3075


Explain method of creating object in C++ ?

587


What is the purpose of extern storage specifier?

617


What is array in c++ pdf?

548


If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

609


What is ostream in c++?

567


What are the three forms of cin.get() and what are their differences?

624


What does it mean to declare a member variable as static?

608


Are iterators pointers?

666


Explain the volatile and mutable keywords.

614