SlideShare una empresa de Scribd logo
1 de 11
ARVIN Free Powerpoint Templates santos buendia
OBJECTIVES ,[object Object],[object Object],[object Object],[object Object]
SCREEN OUTPUT AND ESCAPE SEQUENCE printf(“samahan mo akong pa-blood”); printf(“test… baket???”); printf(“para malaman mo ikaw ang type ko”); samahan mo _ _ akong _ _ pa-blood _ _ test… _ _ _ baket??? _ _ _ para malaman _ _ mo ikaw _ _ ang _ “ type ko _ “ _ _
F ORMAT SPECIFIERS F ORMAT SPECIFIERS  start s  with a percent sign  %  followed by  a character  that specified the  format type  printf(“ twenty five %d”, <argument list>) FORMAT SPECIFIERS %c a single character %s string of charcters %i  or  %d integer number %f floating point %% prints a percent sign FORMAT SPECIFIER FORMAT TYPE
F ORMAT SPECIFIERS FORMAT SPECIFIER   % c printf(“ charcater  % c ”,  ‘a’); printf(“ character  % c ”,  ‘5’); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ character _ a _ _ character _ 5 _
F ORMAT SPECIFIERS FORMAT SPECIFIER   % s printf(“ string is  % s ”, ” SUPERman ”  ); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ string is _ SUPERman _ _
F ORMAT SPECIFIERS FORMAT SPECIFIER   % i or %d printf(“ integer  % i ”,  5); printf(“ integer  % d ”,  25); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ integer _ 5 _ _ integer _ 25 _
F ORMAT SPECIFIERS FORMAT SPECIFIER   % f printf(“ float  % f ”,  5.3); printf(“ float with two decimal places  % .2f ”,  5.345   ); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ float _ 5.300000 _ _ float with two decimal places _ 5.35 _ NUMBER OF DECIMAL
F ORMAT SPECIFIERS FORMAT SPECIFIER   % % printf(“ Printing percent %% ” ); FORMAT SPECIFIER FORMAT TYPE _ Printing percent _ % _ _
F ORMAT SPECIFIERS <argument list>  contains exactly  the same number  of  arguments  as there are  format specifiers , and the  format specifiers  and  argument list  are  matched in order printf(“ Product of 5 and 25 is   % i  ”, 5 * 25 ); printf(“ Product of  %d  and  %d  is   % i ” ,  5,   25 ,   5 * 25 ); _ Product of 5 and 25 is _ 125 _ _ Product of  _ 5 _ and _ 25 _ is _ 125 _
F ORMAT SPECIFIERS If t he item of  data type  that does not directly  correspond  to the  format specification , you will get  unpredictable result printf(“ integer  % f ”,  2); Abnormal program termination printf(“ My name is  % d ”, ” ARVIN ” ); _ My name is _ 419 _

Más contenido relacionado

Destacado (16)

Renaissannce politicss, lit, and art-1
Renaissannce politicss, lit, and art-1Renaissannce politicss, lit, and art-1
Renaissannce politicss, lit, and art-1
 
Key answer to longtest (3 rd quarter)
Key answer to longtest (3 rd quarter)Key answer to longtest (3 rd quarter)
Key answer to longtest (3 rd quarter)
 
Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3
 
Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
 
Industrial revolution
Industrial revolutionIndustrial revolution
Industrial revolution
 
Variable declaration
Variable declarationVariable declaration
Variable declaration
 
439 presentation
439 presentation439 presentation
439 presentation
 
Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
 
Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3Eestlased 2012 londoni olümpia mängudel3
Eestlased 2012 londoni olümpia mängudel3
 
Variable declaration
Variable declarationVariable declaration
Variable declaration
 
The high renaissance
The high renaissanceThe high renaissance
The high renaissance
 
01 intro to algorithm--updated 2015
01 intro to algorithm--updated 201501 intro to algorithm--updated 2015
01 intro to algorithm--updated 2015
 
Bab2
Bab2Bab2
Bab2
 
Scientific revolution
Scientific revolutionScientific revolution
Scientific revolution
 
Pseudocode
PseudocodePseudocode
Pseudocode
 
business opportunities
business opportunitiesbusiness opportunities
business opportunities
 

Más de Hanielle Cheng (20)

4th quarter periodic test review in math3
4th quarter periodic test review in math34th quarter periodic test review in math3
4th quarter periodic test review in math3
 
4th quarter periodic test review in trigonometry
4th quarter periodic test review in trigonometry4th quarter periodic test review in trigonometry
4th quarter periodic test review in trigonometry
 
Quiz no.5
Quiz no.5Quiz no.5
Quiz no.5
 
World 4 th quarter outline
World 4 th quarter outlineWorld 4 th quarter outline
World 4 th quarter outline
 
The renaissance
The renaissanceThe renaissance
The renaissance
 
The reformation part i
The reformation part iThe reformation part i
The reformation part i
 
The industrial revolution 2
The industrial revolution 2The industrial revolution 2
The industrial revolution 2
 
Scientific revolution 2
Scientific revolution 2Scientific revolution 2
Scientific revolution 2
 
Exploration and colonization
Exploration and colonizationExploration and colonization
Exploration and colonization
 
Effects of exploration
Effects of explorationEffects of exploration
Effects of exploration
 
Effects of colonization
Effects of colonizationEffects of colonization
Effects of colonization
 
Early renaissance 3
Early renaissance 3Early renaissance 3
Early renaissance 3
 
Counter reformation
Counter reformationCounter reformation
Counter reformation
 
Age of reason
Age of reasonAge of reason
Age of reason
 
Columbian exchange
Columbian exchangeColumbian exchange
Columbian exchange
 
Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
 
Operators
OperatorsOperators
Operators
 
Operators
OperatorsOperators
Operators
 
Introduction to turbo c
Introduction to turbo cIntroduction to turbo c
Introduction to turbo c
 
Variable declaration
Variable declarationVariable declaration
Variable declaration
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 

Quiz01 and format specifier

  • 1. ARVIN Free Powerpoint Templates santos buendia
  • 2.
  • 3. SCREEN OUTPUT AND ESCAPE SEQUENCE printf(“samahan mo akong pa-blood”); printf(“test… baket???”); printf(“para malaman mo ikaw ang type ko”); samahan mo _ _ akong _ _ pa-blood _ _ test… _ _ _ baket??? _ _ _ para malaman _ _ mo ikaw _ _ ang _ “ type ko _ “ _ _
  • 4. F ORMAT SPECIFIERS F ORMAT SPECIFIERS start s with a percent sign % followed by a character that specified the format type printf(“ twenty five %d”, <argument list>) FORMAT SPECIFIERS %c a single character %s string of charcters %i or %d integer number %f floating point %% prints a percent sign FORMAT SPECIFIER FORMAT TYPE
  • 5. F ORMAT SPECIFIERS FORMAT SPECIFIER % c printf(“ charcater % c ”, ‘a’); printf(“ character % c ”, ‘5’); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ character _ a _ _ character _ 5 _
  • 6. F ORMAT SPECIFIERS FORMAT SPECIFIER % s printf(“ string is % s ”, ” SUPERman ”  ); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ string is _ SUPERman _ _
  • 7. F ORMAT SPECIFIERS FORMAT SPECIFIER % i or %d printf(“ integer % i ”, 5); printf(“ integer % d ”, 25); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ integer _ 5 _ _ integer _ 25 _
  • 8. F ORMAT SPECIFIERS FORMAT SPECIFIER % f printf(“ float % f ”, 5.3); printf(“ float with two decimal places % .2f ”, 5.345 ); FORMAT SPECIFIER FORMAT TYPE ARGUMENT LIST _ float _ 5.300000 _ _ float with two decimal places _ 5.35 _ NUMBER OF DECIMAL
  • 9. F ORMAT SPECIFIERS FORMAT SPECIFIER % % printf(“ Printing percent %% ” ); FORMAT SPECIFIER FORMAT TYPE _ Printing percent _ % _ _
  • 10. F ORMAT SPECIFIERS <argument list> contains exactly the same number of arguments as there are format specifiers , and the format specifiers and argument list are matched in order printf(“ Product of 5 and 25 is % i ”, 5 * 25 ); printf(“ Product of %d and %d is % i ” , 5, 25 , 5 * 25 ); _ Product of 5 and 25 is _ 125 _ _ Product of _ 5 _ and _ 25 _ is _ 125 _
  • 11. F ORMAT SPECIFIERS If t he item of data type that does not directly correspond to the format specification , you will get unpredictable result printf(“ integer % f ”, 2); Abnormal program termination printf(“ My name is % d ”, ” ARVIN ” ); _ My name is _ 419 _