Professional Documents
Culture Documents
Basic Menus of C
1. File – used to load and save files, handle directories, invoke DOS and exits Turbo C.
2. Run – is used to compile, links, and runs the program currently loaded in the
environment
3. Compile – used to compile the program currently in the environment
Data Types – there are five elementary data types in Turbo C. They are:
Type Bidwidth Range
char 8 0 to 255
int 16 -32768 to 32767
float 32 3.4E-38 to 3.4E+38
double 64 1.7E-308 to 1.7E+308
void 0 valueless
Modifiers – is used to alter the meaning of the base type to fit the needs of various
situations more precisely.
signed
unsigned
long
short
Type Modifiers
char unsigned char signed char int unsigned int
signed int short int unsigned short int signed short int long int
float double long double
Keywords – are reserved words that have a special meaning. Reserved words are
words “reserved” by the programming language for expressing various statements and
constructs.
Kinds of Variables
Global Variables – are known throughout the entire program and may be used by any
piece of code.
Constants – They are identifiers or variables that can store a value that cannot be
changed during the program execution.
1. Arithmetic Operators
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus Divisor
-- Decrement a Value
++ Increment a Value
2. Relational Operators
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to
== Equal
!= Not Equal
3. Logical Operators
&& AND
|| OR
! NOT