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

What are the toughest topics in C language?
1. pointer 2. dynamic memory allocation 3. File handling
Lokayya
0 0
5
What is the actual size of INT in the C language, 2 or 4 bytes?
The actual size to int is determined by the compiler as the program runs. But theoretically the size is 2 bytes. You can increase the size by adding keyword long infront of it to make the size 4 bytes. Eg int a; // 2 bytes Long int b; // 4 bytes
Kunal
What is the syntex error?
A syntax error is a violation of the syntax, or grammatical rules, of a natural language or a programming language. ... A syntax error is called a fatal compilation error, because the compiler cannot translate...
Pranik
What is Enum?
A Java Enum is a special Java type used to define collections of constants. More precisely, a Java enum type is a special kind of Java class. An enum can contain constants, methods etc. Java enums were added in Java 5.
S
Explain about protected internal access specifier?
protected access specifier is used in inheritance. Base class members are made accessible to its sub classes through protected access specifier. This access specifier works with in inheritance.
Sahiba
0 0
7

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

Ask a Question

Related Lessons

Variables and Storage Classes
Variables and Storage Classes auto default variable type local to a function static retains the values between function calls initialized only once unavailable outside the scope of the function...

Polymorphism In C++
Basically polymorphism represents poly means many and morph means forms that many forms. In which we are passing same message to different objets but every object will work for that message in their own...

Upcasting and Downcasting
Converting a derived-class reference or pointer to a base-class reference or pointer is called upcasting. It is always allowed for public inheritance without the need for an explicit type cast. The downcasting,...

C++ Overview
Introduction: C++ is the first object oriented programming language used universally as an advanced version of C language. Many features such as Inheritance, Class & Object, Polymorphism(Function...
N

Namrata Y.

0 0
0

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...

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