answersLogoWhite

0

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

12y ago

What else can I help you with?

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


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

Of course.