C is small, fast and close to the hardware, yet portable and structured. These features explain why it is still used for operating systems and embedded devices. This section lists them, then shows the standard layout that every C program follows.
Salient features of C
Feature
Meaning
Example
Middle-level
High-level syntax with low-level access to memory and bits
Pointers (Unit 7), bitwise operators
Structured
Built from functions and the three control structures
Every program is a set of functions starting with main
Portable
The same source code can be compiled on different machines
One .c file compiled for x86 and for ARM
Efficient
Translates closely to machine code, so programs are fast and small
Operating system kernels, device firmware
Small core
Only 32 keywords in C89; most facilities come from libraries
printf is a library function, not a keyword
Rich standard library
Ready-made functions for common tasks
printf, strlen, sqrt
Extensible
Programmers add their own functions and libraries
A calcPercentage function
Case-sensitive
Upper-case and lower-case letters are different
sum, Sum and SUM are three names
C is often called a middle-level language because it combines the features of high-level languages (functions, control structures, portable source code) with the hardware access of low-level languages (pointers holding memory addresses, operators that work on individual bits).
Structure of a C program
The function is the basic unit of a C program. Every program is a collection of functions, and exactly one of them must be called main.
Section
Required?
Purpose
Documentation (comments)
No, but good practice
Explains the program; ignored by the compiler
Preprocessor directives
Almost always
Lines starting with #, handled before compilation, such as #include and #define
Global declarations
No
Variables and function prototypes visible to every function
main function
Yes, exactly one
The entry point: execution starts here
User-defined functions
No
The sub-tasks from top-down design
Other rules: every statement ends with a semicolon ;, and braces { } group statements into a block, such as the body of a function.
Key takeaways
C is called middle-level because it joins high-level structure with low-level hardware access.
Only C source code is portable; executables must be rebuilt for each processor.
A C program has documentation, preprocessor directives, global declarations, main and user-defined functions.
The function is the basic unit; execution starts at main.
Practice questions
Answer on paper first, then check. The explanation matters more than the letter you chose.
Question 6 · short answer
Explain why C is called a middle-level language, giving one example feature from each side.
Show worked answer
C is called a middle-level language because it combines the features of high-level languages with the hardware access of low-level languages. On the high-level side it has functions, control structures such as if and while, and portable source code; for example, if (marks >= 40) printf("Pass"); reads almost like English. On the low-level side it has pointers, which hold memory addresses, such as int *p = &x;, and bitwise operators, which work on individual bits, such as flags & 1.
MCA Online notes are made for reading on screen. Open https://mcastudy.online/mcs-201/programming-fundamentals/features-of-c-and-the-structure-of-a-c-program/ to read this page.