Professional Documents
Culture Documents
Class 4
Class 4
Class 4
PIR sensor
Power Supply Circuit
Semiconductor Memories
Address bus
Data bus
RAM
ROM
VONN NEUMANN architecture
HARVARD architecture
Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar,
Odisha | Tel: 9853200835
Today we cover .
Basics of Programming Language
Compiler
Interpreter
Assembler
Stages of compilation
Data Types
Modifiers
Big-endian & Little-endian
ASCII table
Variables
Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar,
Odisha | Tel: 9853200835
Software
Software:It is a collection of programs.
Application Software:-
Compiler
What is translator ???
It is a system s/w which is used to convert the programming
language
code to binary format.
780
Complier:
Aprogramthattranslatesanotherprogramwritteninahighlevellanguageintomachinelanguagein a single step, sothatit
canbeexecuted.
Compiler Cont
When a user writes a code in a high level language such
as Java and wants it to execute, a specific compiler which is
designed for Java is used before it will be executed.
780
5
The compiler scans the entire program first and then
translates it into machine code which will be executed by
the computer processor and the corresponding tasks will be
performed.
Interpreter
Differences between compiler and interpreter
are listed bellow
Assembler
It is system software which is used to convert assemble
language instruction into binary format.
780
5
What is self/resident complier ?
Stages of compilation
780
5
Data Types
Basic types of data types are: char
int
float
double
char - data type
chardefines characters.
e.g :{
char Letter;
Letter = 'x';
}
Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar,
Odisha | Tel: 9853200835
Modifiers
The data types explained previously have the following
modifiers.
short
long
signed
Unsigned
The modifiers define the amount of storage allocated to the
variable. The amount of storage allocated is not cast in
stone.
ANSI has the following rules:
short int <= int <= long int
float <= double <= long double
Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar,
Odisha | Tel: 9853200835
endian
Variable :
Variable :
A variable is a named object that resides in the RAM
and is capable of being examined and modified.
Properties of a variable:
Scope of the variable (local and global)
Life of the variable (initialization and free)
Default initial value of a variable
Storage of a variable (Memory / register)
Lvalue and Rvalue of the variable
Qualifier of the variable (const and volatile)
Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar,
Odisha | Tel: 9853200835
Types of variable
(a)Variables which can store only one data at time.
Example: integer variables, char variables, pointer
variables etc.
variables
Lvalue
LValue: Lvalue standsforleft value. In any assignment statement LValue
must be a container i.e. which have ability to hold the data. In c has only
one type only container and which is variable. Hence LValue must be any
variable in c it cannot be a constant, function or any other data type of c.
//10=5;
LValue cannot be a integer constant
//max=20; //Lvalue cannot be a micro constant
//b=11; Lvalue cannot be a constant variable
//float=3.3f; Lvalue cannot be a data type
//abc={sachin,5}; Lvalue cannot be a data type
//BLUE =2; Lvalue cannot be a enum constant
Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar,
Odisha | Tel: 9853200835
Rvalue
RValue: In any assignment statement RValue must
be anything which can return and constant value or it
is itself a constant. RValue can be any c constants,
variables, function which is returning a value etc.
//RValue
//RValue
//RValue
//RValue
//RValue
can
can
can
can
can
be
be
be
be
be
a
a
a
a
a
constant.
constant variable
variable.
enum constant.
function.
Emtronik Technology
Website : www.emtronik.in
Cell : 9853200835/111023
Address : N2/4,near CRP
Copyright 2014 Emtronik technology.| N2/4, IRC VILLAGE, Bhubaneswar,
Odisha | square
Tel: 9853200835