Professional Documents
Culture Documents
Outline
Introduction
Programming Steps
Components of Turbo C
Language Elements of C
Identifiers
Data Types
Operators
Arithmetic
Relational
Logical
What is C Language?
Programming Steps
Document Error
Terms
Interpreter
Compiler
Reads the entire program and converts it into object code the form that
can be directly executed by the computer
Compile Time
Reads the source code of your program one line at a time and performs
the specific instructions contained in that line.
Object Code
Programming Process
Make/Edit the
Source Code
Source Code
Pre-processing
Compiler
(Compilation)
Object Code
Linker (Linking)
Executable Code
Close to a
code that can
be understood
by the
machine
Programming Process
Source Code
Run Time
Library
Semantic Run
Components of Turbo C
Editor
Extended C Language
Compiler
Components of Turbo C
Debugger
Run
User Interface
Language Elements of C
Identifiers
1.
2.
3.
4.
5.
Data Types
int variables
Byte Size
Minimum
Value
Maximum
Value
short int
-32768
+32768
int
-2147483648
+2147483648
long int
-2147483648
+2147483648
unsigned int
16
65536
Data Types
float
double float
char
Operators
Arithmetic
Command
Meaning
* (asterisk)
Multiplication
/ (slash)
Division
+ (plus)
Addition
- (minus)
Subtraction
- (unary minus)
Negation
% (modulus)
Modulus Division
++ (plus plus)
Increment Operator
- - (minus minus)
Decrement Operator
( ) parenthesis
Parentheis
Logical Operators
Command
Meaning
&&
And
||
Or
Not
Relational Operators
Command
Meaning
>
Greater Than
<
Less Than
>=
<=
==
Equal to
!=
Not equal to