C Lecture 1
C Lecture 1
1
Why Programming is important?
• Programming is important to innovate and create eco-friendly solutions for
global problems. It is important in our daily life to enhance and increase the
power of computers and the internet.
2
C - Introduction
• C is a middle-level and general-purpose programming language that is ideal
for developing firmware or portable applications.
3
History of C
4
Advantages of C program
• C's low-level features and direct hardware interaction make it well-
suited for system programming, allowing developers to manage
resources efficiently and implement system-level tasks effectively.
6
Disadvantages of C program
• C does not provide Object Oriented Programming (OOP) concepts.
7
Applications of C
• Operating Systems
C is widely used in the development of operating systems due to its efficiency and
ability to directly interact with hardware. Examples include Unix and Linux
kernels, which are primarily written in C.
• Language Compilers
8
• Text Editors
Text editors like Vim and Emacs are often extended or customized using C. The
C language provides the performance required for developing feature-rich and
efficient text editing software.
• Language Interpreters
• Assemblers
Assemblers convert assembly language code into machine code. While not as
commonly used as higher-level languages like C, assemblers are still employed
for tasks requiring low-level programming. Some assemblers and linker tools
are written in C.
9
English Language vs C Language
10
Features of C
• Simple
• Rich Library
• Memory Management
• Fast Speed
• Pointers
• Recursion
• Extensible
11
How does C Programming Language Work?
• Preprocessing
12
How does C Programming Language Work?
13