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 register storage specifier.
Can I uninstall microsoft c++ redistributable?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
Explain about Garbage Collector?
What is implicit pointer in c++?
Explain class invariant.
Can create new c++ operators?
What is the difference between the functions rand(), random(), srand() and randomize()?
Give an example of run-time polymorphism/virtual functions.
Should I learn c or c++ first?
Are c and c++ similar?
Does c++ have string data type?
Is C++ case sensitive a) False b) Depends on implementation c) True
Why main function is special in c++?
How do I download c++?