Fundamental Programming Terminologies (C, Java, Python)
This guide compares 18 core programming concepts across C, Java, and Python.
1. Program
- C: Uses main() function as entry point.
- Java: Uses public static void main().
- Python: Directly runs from top.
2. Statement
- A single instruction: int x = 5; or print("Hello")
3. Syntax
- C/Java: Use semicolons, braces, types
- Python: Uses indentation and colons
4. Indentation
- Required in Python, optional in C/Java
5. Variables
- C/Java: int x = 5;
- Python: x = 5
6. Keywords
- Reserved words like int, class, def, etc.
7. Comments
- C/Java: // or /* */
- Python: #
8. Function / Method
- Python: def add(a, b):
- C: int add(int a, int b)
- Java: static int add(int a, int b)
9. Arguments / Parameters
- Function inputs (typed in C/Java, untyped in Python)
10. Return
- return value from function
11. Print Statement
- C: printf()
- Java: System.out.println()
- Python: print()
12. Data Types
- C: int, float
- Java: int, double
- Python: inferred types
13. Input Statement
- C: scanf()
- Java: Scanner sc = new Scanner(System.in);
- Python: input()
14. Boolean
- C: 0, 1
- Java: true, false
- Python: True, False
15. Comparison Operators
- ==, !=, >, < in all languages
16. Logical Operators
- C/Java: &&, ||, !
- Python: and, or, not
17. Conditionals
- C: if (x > 5) { ... }
- Python: if x > 5:
18. Code Block
- C/Java: use {}
- Python: use indentation