Chirag
Chirag
OF
TECHNOLOGY,
ELECTRICAL AND ELECTRONICS ENGINEERING
WELCOME TO INTERNSHIP REVIEW - 1
(21INT82)
“EMBEDDED SYSTEM”
NAME : CHIRAG S
USN : 1DB21EE004
SKILLICON TECHNOLOGIES
industry with cutting-edge embedded technology solutions. Our professional services and
C Programming in Depth
Hands on Experience on micro-chips
Software Development Life Cycle (SDLC)
GitHub
Testing
Soft Skills
Table of Contents :
C Programming in Depth :
Introduction to C Programming
Features of C programming
Installation of QT Software
Structure of C Programming
Operators in C
Conditional statements in C
Loops in C
Arrays and 2D Arrays in C
Strings in C
Pointers in C
Introduction to C Language:
It is widely used for system programming, embedded systems, and application development.
•Installation Steps:
Syntax:
#include <header_file> // Preprocessor Directive
int main() // Main Function
{
// Variable Declarations
// Program Statements
return 0; // Return Statement
}
Operators in C Programming :
•Arithmetic Operators: +, -, *, /, %
•Relational Operators: ==, !=, >, <, >=, <=
•Logical Operators: &&, ||, !
•Bitwise Operators: &, |, ^, <<, >>
•Assignment Operators: =, +=, -=, *=, /=
Example:
int a = 10, b = 20;
int sum = a + b; // Arithmetic operator
Conditional statements in C :
• If statement: Executes a block if the condition is true.
if (a > b) {
printf("A is greater");
}
• If-Else statement: Provides an alternative execution path.
• Nested If: If inside another if statement.
• Switch-Case: Used for multi-way branching.
switch(choice) {
case 1: printf("One"); break;
case 2: printf("Two"); break;
default: printf("Invalid");
}
Loops in C :
For Loop:
for(int i=0; i<5; i++) {
printf("%d ", i);
}
While Loop: Repeats while the condition is true.
while (condition) {
// Code to execute while the condition is true
}
Do-While Loop: Executes at least once.
do {
// Code to execute
} while (condition);
Arrays and 2D Arrays in C :
An array is a collection of elements of the same data type stored in contiguous memory locations.
It allows you to store multiple values under a single variable name.
Types of array
1.One Dimentional Array
Example: int numbers[5] = {1, 2, 3, 4, 5};
for(int i = 0; i < 5; i++) {
printf("%d ", numbers[i]);
}
2.Two Dimentional Array
Example: int matrix[2][3] = { {1, 2, 3}, {4, 5, 6} };
printf("%d", matrix[1][2]); // Output: 6
Strings in C :
A string is a sequence of characters terminated with a null character ().
In C, strings are handled as arrays of characters.
example:
#include <stdio.h>
int main()
{
char name[10] = "RAMM";
printf("Name: %s\n", name);
return 0;
}
Pointers in C :