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
Which coding certification is best?
What is std namespace in c++?
Do class declarations end with a semicolon? Do class method definitions?
What are the uses of pointers?
How do you print a string on the printer?
What is lambda in c++?
When do we use copy constructors?
What is prototype in c++ with example?
What is the use of setfill in c++?
Are there any special rules about inlining?
What are the comments in c++?
Where and why do I have to put the "template" and "typename" keywords?
How does class accomplish data hiding in c++?
What is object in c++ example?
Tell me an example where stacks are useful?