How do you initialize a class member,
class x {
const int i;
};
Answer Posted / guest
x()
{i=10;
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is difference between c++ 11 and c++ 14?
What are the sizes and ranges of the basic c++ data types?
what are Operators and explain with an example?
what is upcasting in C++?
Explain the differences between private, public and protected and give examples.
What are the different types of polymorphism in c++?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
Write is a binary search tree? Write an algo and tell complexity?
Can a program run without main in c++?
What are pointers used for c++?
Which one between if-else and switch is more efficient?
Which bitwise operator is used to check whether a particular bit is on or off?
what you know about c++?
What do you mean by const correctness?