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
What is the use of data hiding?
Is c++ a good beginners programming language?
Differentiate between declaration and definition.
what is multi-threading in C++?
How is static data member similar to a global variable?
Explain method of creating object in C++ ?
How does list r; differs from list r();?
Will the following program execute?
When should we use multiple inheritance?
What is meant by a delegate?
What is private public protected in c++?
What is scope in c++ with example?
What is struct c++?
What is the function to call to turn an ascii string into a long?
What is a c++ object?