SlideShare a Scribd company logo
Input And Output
A Presentation By Niladri Das
Course BCA
Sec B
ID 23234030461
In C
Agenda
● Introduction
● Types of input output
● scanf()
● printf()
● getchar()
● putchar()
● gets()
● puts()
● Feedback
Introduction
In C programming, for input and output, operations are
supplied as functions in the standard library ( stdio.h ).
So, we can take the data through input functions and
sends results through output functions.
Agenda
Standard Input and Output
Unformatted
Function
Formatted
Function
Input Function
scanf()
Output Function
printf()
Input Function
getch()
getche()
getchar()
gets()
Output Function
putch()
putchar()
puts()
Types Of Input Output -
Agenda
Formatted Input Function
scanf()
Purpose : Reads formatted input from standard input
Format Specifiers :
%d : Integer input.
%f : Floating-point number input.
%c : Character input.
%s : String input.
Example :
Agenda
Formatted Output Function
printf()
Purpose : Performs formatted output to standard output.
Format Specifiers :
%d : Integer input.
%f : Floating-point number input.
%c : Character input.
%s : String input.
Example :
Agenda
Unformatted Input Function
getchar()
● This function reads a character type data from standard output
● It reads one character at a time till the user presses the enter key.
Syntax :
VariableName = getchar() ;
Example :
Agenda
Unformatted Output Function
putchar()
● This function prints one character on the screen at a time, read by the
standard input.
Syntax :
putchar(VariableName);
Example :
Agenda
Unformatted Input Function
gets()
This function is used for accepting any string until enter key is pressed.
Syntax :
gets(variable name);
Example :
Agenda
Unformatted Output Function
puts()
This function prints the string or character array.
It is opposite to gets().
Syntax :
puts(variable name);
Example :
Agenda
Feedback
● WhatsApp No 8777432423
● Email ID niladridas.23@nshm.edu.in
Agenda

More Related Content

PPTX
COM1407: Input/ Output Functions
PPTX
20220823094225_PPT02-Formatted Input and Output.pptx
PPTX
Lesson 7 io statements
PPTX
Managing input and output operations in c
PPTX
Managing input and output operation in c
DOCX
UNIT-II CP DOC.docx
PPTX
Data Input and Output
PPTX
Chap 2 input output dti2143
COM1407: Input/ Output Functions
20220823094225_PPT02-Formatted Input and Output.pptx
Lesson 7 io statements
Managing input and output operations in c
Managing input and output operation in c
UNIT-II CP DOC.docx
Data Input and Output
Chap 2 input output dti2143

Similar to Input and output in c language c programming (20)

PPTX
Input Output function in c programing language.pptx
PPTX
C formatted and unformatted input and output constructs
PPTX
Building Simple C Program
PPT
CPU INPUT OUTPUT
PDF
3. input output instruction in c programming by digital wave
PPTX
C language
PPTX
Concept of Input Functions In C Language
PPTX
Unit 3. Input and Output
PPTX
Functions of stdio conio
PPT
input/output function presentation.pptx.
PPTX
Unit 2 CMath behind coding.pptx
PPTX
Introduction to C Unit 1
PPTX
CHAPTER 4
PDF
Module2
PPTX
C preprocesor
PPTX
INPUT AND OUTPUT STATEMENTS IN PROGRAMMING IN C
PPTX
Input output statement
PPTX
Constants and Unformatted Input Output Functions.pptx
PPTX
1_Introduction of programming language C.pptx
PPTX
Input output statement in C
Input Output function in c programing language.pptx
C formatted and unformatted input and output constructs
Building Simple C Program
CPU INPUT OUTPUT
3. input output instruction in c programming by digital wave
C language
Concept of Input Functions In C Language
Unit 3. Input and Output
Functions of stdio conio
input/output function presentation.pptx.
Unit 2 CMath behind coding.pptx
Introduction to C Unit 1
CHAPTER 4
Module2
C preprocesor
INPUT AND OUTPUT STATEMENTS IN PROGRAMMING IN C
Input output statement
Constants and Unformatted Input Output Functions.pptx
1_Introduction of programming language C.pptx
Input output statement in C
Ad

Recently uploaded (20)

PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Geodesy 1.pptx...............................................
PPT
Project quality management in manufacturing
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Artificial Intelligence
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Sustainable Sites - Green Building Construction
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPT
introduction to datamining and warehousing
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
OOP with Java - Java Introduction (Basics)
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
R24 SURVEYING LAB MANUAL for civil enggi
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Geodesy 1.pptx...............................................
Project quality management in manufacturing
CYBER-CRIMES AND SECURITY A guide to understanding
Internet of Things (IOT) - A guide to understanding
additive manufacturing of ss316l using mig welding
Artificial Intelligence
Embodied AI: Ushering in the Next Era of Intelligent Systems
Sustainable Sites - Green Building Construction
bas. eng. economics group 4 presentation 1.pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
introduction to datamining and warehousing
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Model Code of Practice - Construction Work - 21102022 .pdf
Ad

Input and output in c language c programming

  • 1. Input And Output A Presentation By Niladri Das Course BCA Sec B ID 23234030461 In C
  • 2. Agenda ● Introduction ● Types of input output ● scanf() ● printf() ● getchar() ● putchar() ● gets() ● puts() ● Feedback
  • 3. Introduction In C programming, for input and output, operations are supplied as functions in the standard library ( stdio.h ). So, we can take the data through input functions and sends results through output functions. Agenda
  • 4. Standard Input and Output Unformatted Function Formatted Function Input Function scanf() Output Function printf() Input Function getch() getche() getchar() gets() Output Function putch() putchar() puts() Types Of Input Output - Agenda
  • 5. Formatted Input Function scanf() Purpose : Reads formatted input from standard input Format Specifiers : %d : Integer input. %f : Floating-point number input. %c : Character input. %s : String input. Example : Agenda
  • 6. Formatted Output Function printf() Purpose : Performs formatted output to standard output. Format Specifiers : %d : Integer input. %f : Floating-point number input. %c : Character input. %s : String input. Example : Agenda
  • 7. Unformatted Input Function getchar() ● This function reads a character type data from standard output ● It reads one character at a time till the user presses the enter key. Syntax : VariableName = getchar() ; Example : Agenda
  • 8. Unformatted Output Function putchar() ● This function prints one character on the screen at a time, read by the standard input. Syntax : putchar(VariableName); Example : Agenda
  • 9. Unformatted Input Function gets() This function is used for accepting any string until enter key is pressed. Syntax : gets(variable name); Example : Agenda
  • 10. Unformatted Output Function puts() This function prints the string or character array. It is opposite to gets(). Syntax : puts(variable name); Example : Agenda
  • 11. Feedback ● WhatsApp No 8777432423 ● Email ID niladridas.23@nshm.edu.in Agenda