Thursday, July 30, 2009

In Computer Programming, What is the difference between C and C++ Languages?

C is an easy to use and highly structured language. This results in rapid software development that is easily debugged.





C++ is a complicated and obtusely unstructured object oriented language. Programs compiled in C++ are generally larger and slower than similar programs compiled in C.





C++ was common for many years but has recently declined in use due to the rise in popularity of Java. Java is also slow running, but has the advantage of being able to be run on all platforms without recompilation.





C has been around since the early 70's. It is still used where rapid running object code is required. Most operating systems are written in C. Windows and Linux are examples of this.

In Computer Programming, What is the difference between C and C++ Languages?
mainly oops concept c++ is advanced
Reply:C++is object oriented, C is not.
Reply:C++ is a superset of C. Back in the old days, C++ was actually implemented as a preprocessor that generated C code. These days most C++ compilers are native and do not use C as an intermediate step in compilation.





The primary difference is that C++ adds object oriented features to the C language. Constructors, destructors, inheritance, templates, exceptions, and so on.
Reply:c++ is object oriented programming it contains classes polymorphism inherittance etc


in c there is no classes and oops
Reply:C is procedural language. Here you need to write the program and think in procedural manner..


top down approach.





C++ is object oriented programming. here data is given more importance. and everything is treated as objets.





C++ is advance.
Reply:In 1971 Dr. Dennis Ritchie upgraded BCP Language (B Language) to C Language. and after a decay C language was upgraded to C++ language.


C Language contains the properties which are not in C++ but C++ contains properties which are in C Language.


Both are used. In the beginning of the learning process you'll learn C language and after that in Object Oriented Programming (OOP) you will do these in C++.
Reply:C++ is sexier. The ++ means you get more attention from the opposite sex than C-only coders do.
Reply:There are a few semantic differences between C and C++ in the way they interpret certain language constructs. These differences may not result in a compiler diagnostic, so it is important to pay attention to them when porting code from C to C++ and vice versa. For example, in C, the size of an enumeration equals the sizeof of an int, whereas in C++, the size of an enumeration doesn't have to be an int. Also, in C, the result of applying the operator sizeof to a character constant, for example, sizeof('c'); equals sizeof(int). In C++, on the other hand, the expression sizeof('c'); returns sizeof(char).





also C++ is Object Oriented and C is not

greeting cards

No comments:

Post a Comment