Loading...
Python

Difference between C and Python

cPython
1. C is a procedure oriented programming language 1. Python is an object oriented programming language with some features such as classes, objects, polymorphism, inheritance etc.
2. Execution speed is fast2. Execution speed is slow
3. Declaration of variables is required. 3. Declaration of variables is not required.
4. It cannot handle exceptions4. It can handle exceptions.
5. It does not have garbage collector.5.It has garbage collector
6. Indentation of C statement is not required6. Indentation is compulsory
7. It allows in-time assignment.7. It does not allow in-time assignments.
8. Comma is used as statement separator.8. Semicolon is used as statement separator
9. semicolon is used to terminate the statement9. New line indicates statements termination.
10. Array index must be positive integer. 10. Array index can be positive or negitive integer.
11. It supports one and multi-dimensional array.11. It support only one dimensional array.
12. It supports pointers.12. It does not support pointers.
Leave a Reply

Your email address will not be published. Required fields are marked *