How C++ is different from C language?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Trainer

C++ was invented to manage complexity that C could not handle. For example, a common problem with C was that you could "run out of names for variables" (not to be taken literally of course) because there was no encapsulation, namespaces etc. Also, C does not have exceptions, therefore error handling...
read more
C++ was invented to manage complexity that C could not handle. For example, a common problem with C was that you could "run out of names for variables" (not to be taken literally of course) because there was no encapsulation, namespaces etc. Also, C does not have exceptions, therefore error handling is very error prone, since it depends on the library user to always check return values of funcs, whereas with exceptions, the library developer simply throws an exception that guarantees program flow will be halted. C++ helps by having the constructor init objects which is automatically called by compiler. Unlike C structs which need to be initialized by the programmer (hence another error-prone area). Lastly, there is a lot of other advantages touted by OOP , such as object reuse as well the generic programming based concepts, such as templates and generics which allow you to reuse source code,etc. read less
Comments

Java Trainer

++ is an increment operator c++ is nothing but adding a new feature to the existing c language. Here, new feature is nothing but object oriented principles.
Comments

Professional Tutor with 15 years of experience.

C++ is everything of C and ++. That means incremented part of C. In C++ we can do every thing that we work with C language, whether it POPs, or structres or any thing. But C++ is designed to support OOPs Concept. Where we can work with Object Oriented way. C++ also known as semi OOPs Language. It...
read more
C++ is everything of C and ++. That means incremented part of C. In C++ we can do every thing that we work with C language, whether it POPs, or structres or any thing. But C++ is designed to support OOPs Concept. Where we can work with Object Oriented way. C++ also known as semi OOPs Language. It is mixture of OOPs part and POPs part, JAVA is pure OOPs language,. read less
Comments

Trainer

C++ was invented to manage complexity that C could not handle. For example, a common problem with C was that you could "run out of names for variables" (not to be taken literally of course) because there was no encapsulation, namespaces etc. Also, C does not have exceptions, therefore error handling...
read more
C++ was invented to manage complexity that C could not handle. For example, a common problem with C was that you could "run out of names for variables" (not to be taken literally of course) because there was no encapsulation, namespaces etc. Also, C does not have exceptions, therefore error handling is very error prone, since it depends on the library user to always check return values of funcs, whereas with exceptions, the library developer simply throws an exception that guarantees program flow will be halted. C++ helps by having the constructor init objects which is automatically called by compiler. Unlike C structs which need to be initialized by the programmer (hence another error-prone area). Lastly, there is a lot of other advantages touted by OOP , such as object reuse as well the generic programming based concepts, such as templates and generics which allow you to reuse source code,etc. And a lot of other things that would take too much of my time to list here. read less
Comments

Software Developer, Expertise in Java/J2ee Technology.

C++ is a super set of C. C++ Is object oriented language, while C is procedure oriented language.
Comments

C++, as the name suggests, is a superset of C. As a matter of fact, C++ can run most of C code while C cannot run C++ code. C is regarded as a low-level language(difficult interpretation & less user friendly) while C++ has features of both low-level(concentration on whats going on in the machine hardware)...
read more
C++, as the name suggests, is a superset of C. As a matter of fact, C++ can run most of C code while C cannot run C++ code. C is regarded as a low-level language(difficult interpretation & less user friendly) while C++ has features of both low-level(concentration on whats going on in the machine hardware) & high-level languages(concentration on the program itself) & hence is regarded as a middle-level language. read less
Comments

Technology Trainer

c++ is object oriented programming language while c is a procedural Language so all the concept of OOPS are new in C++
Comments

C++ is derived from C Language. It is a Superset of C. Earlier C++ was known as C with classes. In C++, the major change was the addition of classes and a mechanism for inheriting class objects into other classes. Most C Programs can be compiled in C++ compiler. C++ expressions are the same...
read more
C++ is derived from C Language. It is a Superset of C. Earlier C++ was known as C with classes. In C++, the major change was the addition of classes and a mechanism for inheriting class objects into other classes. Most C Programs can be compiled in C++ compiler. C++ expressions are the same as C expressions. All C operators are valid in C++. read less
Comments

c,c++,vb,vb.net,php.joomal,basic,all computer subjects

1. C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented) 2. In case of C, the data is not secured while the data is secured(hidden) in C+3. C is a low-level language while C++ is a middle-level language (Relatively, Please see the...
read more
1. C follows the procedural programming paradigm while C++ is a multi-paradigm language(procedural as well as object oriented) 2. In case of C, the data is not secured while the data is secured(hidden) in C+3. C is a low-level language while C++ is a middle-level language (Relatively, Please see the discussion at the end of the post) 4. C uses the top-down approach while C++ uses the bottom-up approach 5. C is function-driven while C++ is object-driven 6. C++ supports function overloading while C does not 7. We can use functions inside structures in C++ but not in C. 8. The NAMESPACE feature in C++ is absent in case of C 9. The standard input & output functions differ in the two languages 10. C++ allows the use of reference variables while C does not 11. C++ supports Exception Handling while C does not. read less
Comments

Trainer

yes the bigest difference is that - c is procedural language but c++ is object based language. The concept of object introduced in c++.
Comments

View 91 more Answers

Related Questions

How develop the logic of C++?­

 

 

First try to break the problem into small sets after understanding the problem. Next write a pseudocode for them. Once finsied writing the pseudocode you can then convert that logic into C++ code.
Dipali
0 0
7
what do you mean scope resulation
According to me Scope resolution operator(::) is used to define a function outside a class or when we want to use a global variable but also has a local variable with same name.
Sunil
Why c++ introduced reference variable?
C++ references allow you to create a second name for the a variable that you can use to read or modify the original data stored in that variable.
Sunita
Is it possible to write big safe programs in C++?
yes. C++ is generally used to write system software. For example windows operating system are writeen in C++. Most of the operating system, device driver and antivirus programs are written by using C++.
Sapna
0 0
6
How to register as teacher?
On the basis of his total experience and Qualification you can do it.
Shrikrishna

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Why Indexing Should Start From Zero In Array ?
Why numbering should start at zero? To denote the subsequence of natural numbers 2, 3, ..., 12 without the pernicious three dots, fourconventions are open to usa) 2 ≤ i < 13b) 1 < i ≤ 12c)...

Compiler vs Interpreter
Compiler Interpreter Convert all the code into binary format and execute. Convert one statement at a time and execute, then Convert next statement and execute. After conversion, source...

C++ Program Sample Application
//Standard Library Functions(Headers Files Used in C++) #include<iostream.h> #include<conio.h> //Main function int main() { //function for clearing the screen clrscr(); //function for...

Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

Set 0 To Kth Bit In A Variable
The following code snippet Set 0 to Kth Bit in an variable #include int UnsetBitValue(int n, int k);int main(){ printf("%d\n\n",UnsetBitValue(255,6)); return 0;}// Set kth bit to zeroint UnsetBitValue(int...

Recommended Articles

Introduction C++ is an excellent programming language and many of the applications are written in C++ language. It has generic, object-oriented & imperative programming features, and also provides facilities for low-level memory manipulation. Successor of C language, it is an OOP (object oriented programming) language...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Looking for C++ Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you