can u tell me the advantages and disadvantages in c.
why we go for c++.
thank u,
sree
Printable View
can u tell me the advantages and disadvantages in c.
why we go for c++.
thank u,
sree
Can you rephraze that question in english, please [like, use whole words, and correct syntax]?
--
Mats
Advantages: C is the right tool for the job.
Disadvantages: C isn't the right tool for the job.
Whatever you can do in C can be done in C++.
C++ has "object orientation" built into the language, although in essence that's simply a help, rather than a must for object oriented programming. It comes down to "how you approach a problem" rather than language - you can write non-object oriented code in C++, and you can write object oriented code in C. Of course, using C++ to write object oriented code offers a little bit more help from the language itself, particularly in the form of class inheritance and such things.
The real question is: What are you trying to achieve, and what language is best to achieve that goal under the current situation.
--
Mats
I think programmers could use all the help they can get; and C++ gives them that help. In general, C++ code is safer, smaller (to read at least), and more programmer friendly.
Other than non-traditional computers like cell phones, PDAs, and other things without a keyboard & monitor, is there any platform these days that have a C compiler but no C++ compiler?