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


Please Help Members By Posting Answers For Below Questions

What is command line arguments in C++? What are its uses? Where we have to use this?

857


Is c++ primer good for beginners?

784


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

853


Describe protected access specifiers?

897


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

860


What is ctime c++?

848


What are the types of container classes?

814


What is the best free c++ compiler for windows?

819


Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

920


How do I download c++?

739


Can a Structure contain a Pointer to itself?

808


What are c++ storage classes?

804


What are the rules for naming an identifier?

776


Define the process of handling in case of destructor failure?

779


Explain the difference between static and dynamic binding of functions?

796