lotus



previous page: 02 What is C/C++?
  
page up: alt.comp.lang.learn.c-c++ Frequently Asked Questions
  
next page: 04 What is the difference between this newsgroup and comp.lang.c or comp.lang.c++?

03 So, are C and C++ not so similar after all?




Description

This article is from the alt.comp.lang.learn.c-c++ Frequently Asked Questions. Compiled by Sunil Rao sunil.rao@ic.ac.uk.

03 So, are C and C++ not so similar after all?

They are indeed similar to a great extent. Incompatibilities do exist, though, and many idiomatic constructs used in C are frowned upon by C++ experts. C++ programmers generally consider code that does not exploit those features of C++ that make it possible to write better programs - programs that are more readable and easier to write and maintain - to be in poor style. The differences between the two languages are significant enough to ensure that one has to be clear about the language being used. However, it must not be forgotten that C++ is a largely a superset of C, and that it is possible (though perhaps not desirable) to write code that works correctly in both languages.

A lot of people incorrectly believe that object-oriented programs cannot be written in C; this is not true. What is true is that C++ provides features that make it easier to write in a style that is object-oriented; in other words, C++ supports programming in an object-oriented style.

 

Continue to:















TOP
previous page: 02 What is C/C++?
  
page up: alt.comp.lang.learn.c-c++ Frequently Asked Questions
  
next page: 04 What is the difference between this newsgroup and comp.lang.c or comp.lang.c++?