CLASSIFICATIONS OF COMPUTERS
Super computer
• weather forecasting,aircraft design
• Fastest ,powerful,expensive
e.g. CRAY1,CRAY-2
Mainframe Computers
• Expensive, server in www
e.g. IBM S/390
Mini computer
• Business,government,education,hospital,server in n/w environments
e.g. AS/400,prime computers
Micro Computers(desktop,laptop,workstation,network,handheld)
• Used in homes, offices
• Handy & portable
INTRODUCTION TO C
• Developed by Dennis Ritchie
• American National Standards Institute approved C in 1989 – ANSCI C
Characteristics of C
• Robust Language
• Combines the feature of assembly & highlevel language
• High level programming language (no worry about the machine code)
• Small size (32 keywords)
• Suited for structured programming
• Quick Language(make use of operators and datatypes so fast and efficient)
• Facilitates low level programming
• Portable language
Structure of a C Program
Preprocessor directives -> special instructions that indicates how to prepare program for compilation
Global declaration
main()
{
Local declaration
Statements
}
Function 1()
{
Local declaration
Statements
}
……………….
Function n()
{
Local declaration
Statements
}
include --- preprocessor command tells
compiler to execute some information is
needed from specified headerfile.
Function ---- group of c statements that are
executed together
Header file ---in built functions
int main ---return integer value to os
#include <stdio.h>
int main()
{
printf(“n welcome to the world of c”);
return 0;
}

pop1.pdf

  • 1.
    CLASSIFICATIONS OF COMPUTERS Supercomputer • weather forecasting,aircraft design • Fastest ,powerful,expensive e.g. CRAY1,CRAY-2 Mainframe Computers • Expensive, server in www e.g. IBM S/390 Mini computer • Business,government,education,hospital,server in n/w environments e.g. AS/400,prime computers Micro Computers(desktop,laptop,workstation,network,handheld) • Used in homes, offices • Handy & portable
  • 2.
  • 3.
    • Developed byDennis Ritchie • American National Standards Institute approved C in 1989 – ANSCI C
  • 4.
    Characteristics of C •Robust Language • Combines the feature of assembly & highlevel language • High level programming language (no worry about the machine code) • Small size (32 keywords) • Suited for structured programming • Quick Language(make use of operators and datatypes so fast and efficient) • Facilitates low level programming • Portable language
  • 5.
    Structure of aC Program Preprocessor directives -> special instructions that indicates how to prepare program for compilation Global declaration main() { Local declaration Statements } Function 1() { Local declaration Statements } ………………. Function n() { Local declaration Statements } include --- preprocessor command tells compiler to execute some information is needed from specified headerfile. Function ---- group of c statements that are executed together Header file ---in built functions int main ---return integer value to os #include <stdio.h> int main() { printf(“n welcome to the world of c”); return 0; }