Wednesday, December 13, 2017

What is a input -output c programming language function

C -Input⇋ output function

                     Input output example
Add caption


Input means to provide the program with some data to be used in the program and Output means to display data on screen or write the data to a printer or a file.

        C programming language provides many built-in functions to read any given input and to display data on screen when there is a need to output the result.


        All these built-in functions are present in C header files, we will also specify the name of header files in which a particular function is defined. 

           It is important for you to take note of the following: 

scanf ( ) – 
          it means formatted input analysis 

printf ( ) –
            it means formatted printing 

putchar ( ) –
               it means putting one character in the stdout file buffer

 getchar ( ) – 
         it means getting one character from the stdin file buffer 

puts ( ) – 
        it puts the string in stdout 

gets ( ) – 
          it gets the string from stdin

 fscanf ( ) – 
           it means formatted input from the general files 

fprintf ( ) – 
             it means formatted printing to the general files 

fputs ( ) – 
         it means putting the string in the file 

fgets ( ) –
           it means getting the string from the file 

fclose ( ) – 
            it closes the file that was opened by fopen ( ) 

fopen ( ) – 
           it opens or creates a file for a high level access

 getc ( ) – 
          it gets one character from the file 

ungetc ( ) ; – 
           it is used to undo the last get operation 

fgetc ( ) –
          it gets the character from the file 

putc ( ) – 
         it puts the character to the file 

fputc ( ) –
        it puts the character from the file 

feof ( ) – 
         it is the end of the file. It either returns false or returns true

 fwrite ( ) – 
         it writes a block of characters 

fread ( ) – 
         it reads a block of characters 

fseek ( ) – 
          it finds the position of the file 

ftell ( ) – 
        it returns the position of the file 

fflush ( ) – 
          it empties the file buffers 

rewind ( ) – 
          it moves the position of the file towards the beginning 

creat ( ) – 
        it creates a new file

 close ( ) – 
         it closes the file that has been opened with open ( ) 

open ( ) – 
          it opens the file for low-level use 

read ( ) – 
           it reads a block of bytes that have not yet been translated 

write ( ) – 
         it writes a block of bytes that have not yet been translated 

unlink ( ) –
        it deletes the file 

rename ( ) – 
          it renames the file

 lseek ( ) –
           it finds the position of the file 

remove ( ) – 
                it deletes the file


Input out wire processing 





0 comments:

Please comment and follow this site blog inbox