Professional Documents
Culture Documents
EMBEDDED SYSTEM FILE 2
EMBEDDED SYSTEM FILE 2
Submitted to:
3. Introduction to C language
Introduction to C language:
Data types of C:
Data types are the type of data stored in a C program. Data types are used while
defining a variable or functions in C.
C provides several built-in data types, such as integer (int), character (char),
floating-point (float). Each data type has its own set of possible values and
operations that can be performed on it.
C variables:
In C, a variable is a named storage location in memory that holds a value which
can be modified during program execution. Variables must be declared with a
specific data type (e.g., int, float, char) before they can be used.
For Example:
Int age;
Float temperature;
Char initial;
C operators:
Loops: Loops in C are control flow statements that repeat a block of code
as long as a specified condition is true. Example: - for loop, while loop, do-while
loop.
Multiple Digits:
LCD display:
Matrix keyboard:
These peripherals enable the microcontroller to interact with external devices and
perform various tasks.