1. Why is C called a Middle-Level Language?
C is called a middle-level programming language because it combines features of both low-level and high-level languages.
Low-Level Features
These allow C to interact closely with hardware:
-
Direct memory access using pointers
-
Bitwise operations
-
Manual memory management
-
Ability to perform hardware-level programming
-
Used in operating systems and device drivers
High-Level Features
These make programming easier and structured:
-
Functions
-
Arrays
-
Structures
-
Abstraction
-
Structured programming