Difference between Python and C , Python and C++, Python and java
Sr No. | Python Language | C Language |
---|---|---|
1. | Python language is developed by Guido van Rossum in 1991 | C Language developed by Dennis Ritchie in 1972 |
2. | In Python Data type declaration is not require | in C Language Data type declaration is require |
3. | Python language is easy & short syntax | C language is complex & long syntax |
4. | Python Does not use pointer (*) | C language Use Pointer (*) |
5. | Python language is Slower then c language | C language is faster then python |
6. | In python Language use (in) keyword for increment in ' for loop ' | In C language the vibrable does not increment automatically in a ' for loop ' |
7. | implication of stack & queue is easier in python | implication of stack & queue is difficult in c language |
8. | Python support exception handling | C language does not support exception handling |
9. | Python using new line for termination | C language using semicolon for termination |
10. | Syntax: print(" // code "); | Syntax: # include<stdio.h> # include<conio.h> void main(){ // code } |
11. | In python use for save file (.py) extension | In C language use for save file (.c) extension |
Sr No. | Python Language | C ++ Language |
---|---|---|
1. | Python language is developed by Guido van Rossum in 1991 | C++ Language developed by Bjarne Stroustrup in 1979 and released in 1982 |
2. | Python developed in CPython, Jython, PyCharm | C++ Language developed in Turbo c++ & Dev c++ |
3. | Python provide automatically garbage collection | C++ language does not provide automatically garbage collection |
4. | Python Does not use pointer (*) | C++ language Use Pointer (*) |
5. | Python language is Slower then c language | C++ language is faster then python |
6. | In python Language use (in) keyword for increment in ' for loop ' | In C++ language the vibrable does not increment automatically in a ' for loop ' |
7. | implication of stack & queue is easier in python | implication of stack & queue is difficult in c++ language |
8. | Python support exception handling | C++ language does not support exception handling |
9. | Python using new line for termination | C++ language using semicolon for termination |
10. | Syntax: print(" // code "); | Syntax: # include<iostream.h> # include<conio.h> void main(){ // code } |
11. | In python use for save file (.py) extension | In C ++ language use for save file (.cpp) extension |
Sr No. | Python Language | Java Language |
---|---|---|
1. | Python language is developed by Guido van Rossum in 1991 | JAVA is developed by James Gosling in 1995 |
2. | Python latest version is Python 13.12.4 | java latest version is java 22 |
3. | Python language is easy & short syntax | java is complex & long syntax |
4. | Python has few lines of code | java has long line of code |
5. | Python language is Slower then c language | java is faster then python |
6. | Python tack less time to developed | java tack more time to developed |
7. | Python is Dynamic language | Java is static language |
8. | Python is use while space to make the beginning & ending of body | java is use Curly braces to signify the beginning and ending the body |
9. | Python use new line for termination | java using semicolon for termination |
10. | Syntax: print(" // code "); | Syntax: public class class_name{ public static void main(){ system.out.println(" //code "); } } |
11. | In python use for save file (.py) extension | In java language use for save file (.java) extension |
Comments
Post a Comment