Introduction To Programming
Introduction To Programming
What is a .
The functions of a computer system are
controlled by computer programs
A computer program is a clear, step-by-step,
finite set of instructions
A computer program is written in a computer
language called a programming
language
Machine languages
Assembly languages
High-level languages
Education
Agriculture
Embedded Systems
Facts
Embedded Systems Training Program
The Embedded Systems program is aimed to develop the skills of the students and
make them
industry ready for the booming embedded Systems industry. Some of the facts about
the industry are mentioned below -
There are over 130 chip design firms present in Indiathe vast pool of talent and
growing domestic market has helped the country emerge as an important centre
for chip design.
Exercise:
Normal approach.
#include <stdio.h>
int main()
{
int x, y, temp;
printf("Enter the value of x and y\n");
scanf("%d%d", &x, &y);
printf("Before Swapping\nx = %d\ny = %d\n",x,y);
temp = x;
x = y;
y = temp;
printf("After Swapping\nx = %d\ny = %d\n",x,y);
return 0;
}
Think different
#include <stdio.h>
int main()
{
int x = 10, y = 5;
1st approach
using
arithmetic
operator
2nd approach
using Using
Bitwise
XOR
#include <stdio.h>
int main()
{
int x = 10, y = 5;
return 0;
}
Thank You !!