answersLogoWhite

0

Advantages of c plus plus than c?

Updated: 8/11/2023
User Avatar

Wiki User

10y ago

Best Answer

Python is an interpreted high-level language and interpreters are available for Windows, Mac OS X and Unix. Thus the same code can be executed upon these different platforms with no changes to code. By contrast, C++ must be compiled separately for each platform and all machine-specific code must be filtered out of each compilation, which puts an increased workload upon the programmer.

As an interpreted language Python is more direct and convenient, it can be used interactively or can be used to build complete programs, without any of the lengthy compilation and linking procedures involved in C++.

Python's data types are high-level and extremely flexible, unlike the strong data typing that is strictly enforced by C++. As such there is no need to declare variables before using them. However, the flexibility comes at a cost in increased memory consumption.

The flexibility of the language and high-level nature of the data types means Python is much easier to learn than C++, and therefore more accessible to non-programmers.

The main disadvantage of Python compared to C++ is that it doesn't perform well. However, the same can be said of all interpreted languages, including Java. C++ will always perform better because code is compiled to native machine code, but requires more effort on the part of the programmer. However, the results are comparable to that of low-level assembly.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

Essentially the same as C, but with the inclusion of object-oriented programming principals.

C is a high-level language, with low-level features such direct manipulation of memory. The level of abstraction between the language and the hardware is far less than that of Java, producing native machine code that can fully exploit platform specific features. Java is simpler to work with, but the level of abstraction means certain hardware features are inaccessible. The end result is byte code that must execute in a virtual machine, which only serves to impede the performance even further.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

The major advantage of vb.net is that it use the library instead in vb there are ActiveX that are very problematic when we change the system there we need to present that ActiveX.

In .net because of library Connection is very easy and portable.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

C++ includes object-oriented programming, which allows highly complex structures to be modelled more easily than with C alone.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Well, if you are experienced with VB, just use that.

This answer is:
User Avatar

User Avatar

Wiki User

7y ago

The two main advantages of C++ are object-oriented programming and generic programming, neither of which is natively supported by C.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Advantages of c plus plus than c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Can graphics in C programming done with compilers other than turbo c plus plus?

Of course.


How you use stack in c plus plus classes?

It would be easier to manipulate the stack in assembly language rather than C++.


Is for loop is faster than while loop in turbo c plus plus compiler?

No, why did you think so?


What is the differences between smalltalk and c plus plus?

Smalltalk is dynamically typed whereas C++ is statically typed. As a result C++ performs better than Smalltalk. However, Smalltalk inheritance is less strict than C++ so it's a bit more flexible.


Why is java's portability better than c plus plus?

As we know that java is a plateform independent language and the main advantage of java is that it can support to any operating system and can be executed to any machines without any modifications.Due to the use of class in java it has become more easier to understand the program compared to c plus plus.Hence,java is portable than c plus plus

Related questions

Advantages of manipulator in c plus plus?

theriyadhu


Advantages of C over C plus plus and java?

C can be faster than C++ programs, and definitely faster than Java, since Java is primarily interpreted. C is also somewhat less rigid in definitions as well, not as tightly structured as either C++ or Java can be.


What are the Advantages of c over c plus plus?

There are no advantages of C over C++ as such. Everything you can do in C you can also do in C++. However, by taking advantage of C++ object oriented programming, generic programming and template meta programming as well as C-style coding, you can produce more efficient machine code far more easily and more quickly than with C alone.


Main advantage of 'c' against 'c plus plus ' langugae?

C does not have any major advantages over C++ because any C program can be compiled under C++ with relatively minor modification. However, the C compiler works a bit quicker than that of C++ since there is no need to cater for object-oriented programming in C.


Advantages of C plus plus over c?

Everything you can do in C you can do in C++, with relatively minor variations in syntax. You can also incorporate C-style code directly. However, the main advantage is that C++ incorporates object-oriented programming, which allows highly complex data structures to be constructed far more easily than with C alone.


If a is less than b and c is less than d then a plus c is less than b plus d?

Correct.


Which is easier 'C plus plus' or 'Java'?

Java is considerably easier than C++.


Why do you need c plus plus?

For programming. C++ is better than C because it is object-oriented and has classes.


Is a c- better then a c plus?

No, a C is not better than a C+. It is the other way around - A C+ is better than a C.


How do you add more than two numbers in C plus plus?

sum = a + b + c;


Is it easy to learn C plus plus rather than C?

C++ is a superset of C, with some things changed, so it is more correct to say that learning C is easier than learning C++.


What is 6 more than c?

c + 6