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
Can member functions be private?
Why do we use pointers in c++?
Who made c++?
What are the uses of pointers?
Which programming language is best?
When you overload member functions, in what ways must they differ?
What is the difference between a definition and a declaration?
What is ios in c++?
What is c++ and its uses?
What are static type checking?
What is time_t c++?
What are the benefits of oop in c++?
List the merits and demerits of declaring a nested class in C++?
Why are pointers not used in c++?
Can we distribute function templates and class templates in object libraries?