🟩 Chapter 1: Introduction to C Language
🔹 1. What is C Language?
- C is a high-level programming language developed by Dennis Ritchie in 1972 at Bell Labs.
- It is the base for many modern languages (like C++, Java, Python, etc.).
- Known as the “mother of all programming languages.”
🔹 2. Features of C
- Simple and efficient
- Structured language (uses functions)
- Portable (runs on any platform)
- Fast execution (compiled language)
- Rich library of built-in functions
- Low-level access (can interact with hardware)
- Modular and extensible
🔹 3. Structure of a C Program
Example:
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
Explanation:
#include <stdio.h>→ header file for input/outputmain()→ starting point of programprintf()→ output functionreturn 0;→ ends the program successfully
🔹 4. Steps in Program Development
- Problem definition
- Algorithm design
- Flowchart creation
- Coding
- Compilation
- Execution
- Debugging and testing
🔹 5. Compilation Process
Source Code → Compiler → Object Code → Linker → Executable File
