Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
WHAT IS A PROGRAM ?
WHAT IS A PROGRAMMING LANGUAGE ?
DATA TYPES ?
OPERATORS ?
TYPE CONVERSIONS ? STRUCTURES ?
FLOW CHART ? FUNCTIONS ?
ALGORITHM ?
LOOPS ?
ARRAYS ?
SORTING ?
SEARCHING ?
STRINGS ?
PROGRAM:
Converting data type of a variable into another data type is known as type
conversion
FLOWCHART :
Start/stop
Input/output
extension A
Statement
conditon
ALGORITHM:
The loops are categorize into two types based on their behaviour. They are :
entry controlled loops
exit controlled loops
ARRAYS :
An array is a collection of similar data types which shares a commo name and
occupies consecutive memory locations.
Types of arrays :
single (or) one dimensional array
double (or) two dimensional array
multi dimensional array
SORTING :
String functions :
1.) str len (char s[] ); 6.) str epy ( char s2[],char s1[] );
2.) str upr ( char s[] ); 7.) str cmp ( char s1[],char s2[] );
3.) str lwr (char s[] ); 8.) str cmpi (char s1[], char s2[] );
4.) str rev ( char s[] );
5.) str cat ( cha s1[], char s2[] );
STRUCTURES :
A function is a self contained code which can be called any number of times
at any part of the program.
Characteristics of a function :
a function must have a written type may be of primitive (or) non primitive (or)
void.
function may or may not written a value.
function can have parameters. A function can be called any number of times.