stdio.h in c, inslude stdio h in c,#include stdio h in c, #include in c

stdio.h in c

stdio.h in c, inslude stdio h in c,#include stdio h in c, #include in c

Table of Contents

What is the #include Stdio H?

stdio.h in c The C programming language provides many standard library functions for file input and output. These functions make up the bulk of the C standard library header <stdioh>.The file is called a header file and you will find several different header files on the source disks that came with your C compiler with conio.h

Functions of Stdio.h in c

Sr.No.Functions & Description
1printf()
It is used to print the strings, integer, character etc on the output screen.
2scanf()
It reads the character, string, integer etc from the keyboard.
3getc()
It reads the character from the file.
4putc()
It writes the character to the file.
5fopen()
It opens the file and all file handling functions are defined in stdio.h header file.
6fclose()
It closes the opened file.
7remove()
It deletes the file.
8fflush()
It flushes the file.
stdio.h

Here is an example of stdio.h in C language,

Example

#include<stdio.h>

int main () {
   char val;

   printf("Enter the character: \n");
   val = getc(stdin);
   printf("Character entered: ");
   putc(val, stdout);

   return(0);
}

Output

Here is the output

Enter the character: s
Character entered: s

What is the use of #include stdio h in C?

#include is a preprocessor directive, used to paste the code Of given file to the current file. stdio. h is a non-standard header file, used mostly by MS Dos compilers like turbo c/c++ to provide standard input/output

What is the use of stdio h in C?

#include stdio h in C is a preprocessor directive, used to paste the code Of given file to the current file. stdio. h is a non-standard header file, used mostly by MS Dos compilers like turbo c/c++ to provide standard input/output