SlideShare a Scribd company logo
PRESENTATION
COURSE TITLE
CSE 122
MAM
AFSARA TASNIM MISHA
TOPIC
SYNTAX AND EXAMPLE OF
PRINTF & SCANF FUNCTION
Printf() function :
Printf Defination :
 PRINTF() FUNCTION IS USED TO DISPLAY
FORMATTED OUTPUT ON THE SCREEN.
 SYNTAX
Printf()(“control string”,arg1,arg2,….argn);
Example program for c printf() function :
OUTPUT :
C scanf() function :
Scanf() Defination
 SCANF() FUNCTION IS USED TO GET
FORMATTED INPUT FROM THE KRYBOARD.
SYNTAX
 Scanf()(“control string”,arg1,arg2,….,argn);
Example program for scanf() & printf()
function in c :
Output :
Cse presentation ratul
Cse presentation ratul

More Related Content

DOCX
PPT
Circular queues
PPT
Csc1100 lecture03 ch03-pt1-s14
PPT
Csc1100 lecture03 ch03-pt1-s14
PPT
Concept of c
PPT
Application of Stacks
PPTX
Printf and scanf
DOCX
Programacion
Circular queues
Csc1100 lecture03 ch03-pt1-s14
Csc1100 lecture03 ch03-pt1-s14
Concept of c
Application of Stacks
Printf and scanf
Programacion

What's hot (18)

PPT
Expression evaluation
PPTX
My lecture infix-to-postfix
DOCX
ADS-B Out Experiment
DOCX
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
DOC
Macroprocessor
PDF
C programs Set 2
PPTX
Mathematics Function in C ,ppt
PPTX
Virtual machines - how they work
PPT
Infix prefix postfix
PPTX
Prefix, Infix and Post-fix Notations
TXT
New text document
PDF
openCypher Technology Compatibility Kit (TCK)
DOCX
Java Code for Sample Projects Methods
PPTX
Loop control structure
PDF
Infix to Prefix (Conversion, Evaluation, Code)
PPTX
Presentation2
PPTX
Presentation2
DOC
algorithmdivs
Expression evaluation
My lecture infix-to-postfix
ADS-B Out Experiment
A.P.S.E PRACTICAL FILE, NIT KURUKSHETRA
Macroprocessor
C programs Set 2
Mathematics Function in C ,ppt
Virtual machines - how they work
Infix prefix postfix
Prefix, Infix and Post-fix Notations
New text document
openCypher Technology Compatibility Kit (TCK)
Java Code for Sample Projects Methods
Loop control structure
Infix to Prefix (Conversion, Evaluation, Code)
Presentation2
Presentation2
algorithmdivs
Ad

Recently uploaded (20)

PPTX
additive manufacturing of ss316l using mig welding
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Welding lecture in detail for understanding
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Digital Logic Computer Design lecture notes
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Construction Project Organization Group 2.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Well-logging-methods_new................
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
web development for engineering and engineering
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT
Mechanical Engineering MATERIALS Selection
additive manufacturing of ss316l using mig welding
CH1 Production IntroductoryConcepts.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Welding lecture in detail for understanding
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Digital Logic Computer Design lecture notes
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
OOP with Java - Java Introduction (Basics)
Construction Project Organization Group 2.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
bas. eng. economics group 4 presentation 1.pptx
Well-logging-methods_new................
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Internet of Things (IOT) - A guide to understanding
web development for engineering and engineering
Operating System & Kernel Study Guide-1 - converted.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mechanical Engineering MATERIALS Selection
Ad

Cse presentation ratul