Is there something that we can do in C and not in C++?
Answer Posted / som
In C the const variables can be declared and can allocate
the value later.
For ex:
const int i;
i = 7;
This will work in c, but c++ will give compilation error.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain the use of vtable.
Const char *p , char const *p What is the difference between the above two?
Incase of a function declaration, what is extern means?
What is the full form of india?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
Explain the uses oof nested class?
What is the difference between delegation and implemented-in-terms-of?
Does dev c++ support c++ 11?
What is the error in the code below and how should it be corrected?
Can we define a constructor as virtual in c++?
If a function doesn’t return a value, how do you declare the function?
What does flush do?
What is constructor c++?
Explain the volatile and mutable keywords.
Is it possible to pass an object of the same class in place of object reference to the copy constructor?