student said:
hi, C is an evergreen programming language developed by denis richie.
C++ is only an extension to C with some extra added features and VC++
provides an IDE for programming. still C is not obselete. why? please
answer to make me a clear view about C.
In mathematical terms, C++ is not a superset of C because there are some C
programs which are not legal C++ programs.
However for our purposes what you say is nearly true.
So the reason for not having the C++ extensions isn't purely technical. It
is psychological. It is a lot easier to write bad C++ programs than it is to
write bad C programs.
By rejecting the C++ extensions, at a stoke you make your job of writing an
understandable, efficient, and correct program that much simpler.
It is not always the case, of course. Some programs are easier to write in
C++, because the C++ extensions express the relationships between your data
items better than a purely procedural / simple data structure program can.
The British army recently ordered some rifles. They came with burst /
single shot modes. The army had them modifed to get rid of the automatic
fire option, reasoning that soldiers would, in the heat of battle, waste all
their ammunition. Having an option isn't always better.