Programming for Problem Solving (3110003)

BE | Semester-1   Winter-2019 | 07-01-2020

Q4) (a)

Show the important of stdio.h header file.

  • The C programming language provides many standard library functions for file input and output. These functions make up the C standard library header <stdio.h>.
  • The system finds the file name stdio.h and reads its entire contents in, replacing the statement.
List of inbuilt C functions in stdio.h file are:

printf ( ) - This function is used to print the character, string, float, integer, octal and hexadecimal values onto the output screen.
scanf ( ) - This function is used to read a character, string, numeric data from a keyboard.
getc ( ) - It reads characters from a file. getchar( ) - It reads characters from the keyboard.
puts ( ) - It writes lines to the output screen.