Tuesday 14 August 2012

Input-Output Functions in C


Input-Output Functions in C



The Two Types of  C Functions

1) Predefined / Built-in/ Library Functions 
           These are defined in Header Files (.h)
     1.1) Mathematical   : sqrt() , abs(), floor(), ceil(), sin(), cos(), tan()
     1.2) Numeric Input  : scanf()
     1.3) Numeric Output  : printf()
     1.4) char Input    : getc(), getchar(), getch(), getche() & scanf()
     1.5) char output   : putc(), putchar(), printf()
     1.6) String Input   : gets(), scanf()
     1.7) String output  : puts(), printf()
     1.8) String manipulation : strlen(), strupr, strlwr(), strcpy(), strcat(), strcmp().....
     1.9) Screen clearing : clrscr()
     1.10) String Conversion      : atoi(),  atol()  , atof() - <stdlib.h>
           etc.........
2) User-defined  Functions
    2.1) main()  : Mandatory Function - Automatically called by Compiler
    2.2) sub-functions : optional
           - declaration
           - definition
           - calling / invoking

No comments:

Post a Comment