SlideShare ist ein Scribd-Unternehmen logo
1 von 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 _

Weitere Àhnliche Inhalte

Andere mochten auch (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
 

Mehr von Hanielle Cheng

Mehr von 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
 

KĂŒrzlich hochgeladen

+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@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

KĂŒrzlich hochgeladen (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
+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...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

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 _