









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Origin: Developed by Dennis Ritchie
at Bell Labs in 1972.
Influences: Based on the B
programming language and
influenced by ALGOL.
Evolution:
in "The C Programming Language"
book by Kernighan and Ritchie.
in 1989.
Simplicity: Simple syntax
and easy to learn.
Efficiency: Produces highly
efficient programs.
Portability: Code can run
on different machines with
little or no modification.
Rich Library: Provides a
rich set of built-in functions.
A r i t h m e t i c O p e r a t o r s : + ,
R e l a t i o n a l O p e r a t o r s :
L o g i c a l O p e r a t o r s : & & , | | ,
A s s i g n m e n t O p e r a t o r s :
I n c r e m e n t / D e c r e m e n t
O p e r a t o r s : + + , - -
Switch Statement:
switch (variable) {
case value1:
// code
break;
case value2:
// code
break;
default:
// code
The switch
statement executes
one of many blocks
of code based on the
value of a variable.
For Loop:
for (initialization;
condition; increment) {
// code
The for loop repeats
a block of code a
specific number of
times.
While loop:
while (condition) {
// code
The while loop
repeats a block of
code as long as a
specified condition is
true.
Operating Systems: Unix,
Linux, Windows
Compilers: GCC, Clang
Embedded Systems:
Microcontrollers, IoT devices
Game Development:
Game engines, graphics
programming
Database Systems:
MySQL, Oracle
Summary: C programming is a foundational
language that offers simplicity, efficiency, and
flexibility, making it suitable for a wide range of
applications.