SlideShare a Scribd company logo
1 of 1
Download to read offline
17.13 Homework 6, P2: Two smallest values A file called data.txt contains a set of integer
numbers. Find the two smallest numbers on that file. Your code should use the following function
that returns the two smallest integers. void smallestints(FILE *inp, int *pmin1, int *pmin2); Sample
Output data.txt: 13019412337162794311529166826654289612 Smallest number:-12 Second
smallest number:-8 460148.3125404.q329y7 17.13.1: Homework 6, P2: Two smallest values 0/2
Downloadable files

More Related Content

More from adamsapparels

1Genel olarak firma neden dier firmalar satn almaya alr .pdf
1Genel olarak firma neden dier firmalar satn almaya alr  .pdf1Genel olarak firma neden dier firmalar satn almaya alr  .pdf
1Genel olarak firma neden dier firmalar satn almaya alr .pdf
adamsapparels
 

More from adamsapparels (20)

1Incluidas las primeras empresas digitales Seleccione una.pdf
1Incluidas las primeras empresas digitales Seleccione una.pdf1Incluidas las primeras empresas digitales Seleccione una.pdf
1Incluidas las primeras empresas digitales Seleccione una.pdf
 
1Strawberries have four times as much DNA as humans How do.pdf
1Strawberries have four times as much DNA as humans How do.pdf1Strawberries have four times as much DNA as humans How do.pdf
1Strawberries have four times as much DNA as humans How do.pdf
 
1Ekonomik teori A Ekonomik olaylar aklamaya alr B e.pdf
1Ekonomik teori  A Ekonomik olaylar aklamaya alr  B e.pdf1Ekonomik teori  A Ekonomik olaylar aklamaya alr  B e.pdf
1Ekonomik teori A Ekonomik olaylar aklamaya alr B e.pdf
 
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
1Mitoz ve mayoz blnme arasndaki farklarla ilgili aadaki .pdf
 
1Need help drawing penile tissue and Uterus penile tissue.pdf
1Need help drawing penile tissue and Uterus penile tissue.pdf1Need help drawing penile tissue and Uterus penile tissue.pdf
1Need help drawing penile tissue and Uterus penile tissue.pdf
 
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
1Sre modelleme ynergeleri hangi hedeflere katkda bulunm.pdf
 
1Research the data amount of spending by Torontonians What.pdf
1Research the data amount of spending by Torontonians What.pdf1Research the data amount of spending by Torontonians What.pdf
1Research the data amount of spending by Torontonians What.pdf
 
1a Cmo termina la sntesis en la transcripcin a secu.pdf
1a  Cmo termina la sntesis en la transcripcin  a secu.pdf1a  Cmo termina la sntesis en la transcripcin  a secu.pdf
1a Cmo termina la sntesis en la transcripcin a secu.pdf
 
1Social media has become more important to brand managers t.pdf
1Social media has become more important to brand managers t.pdf1Social media has become more important to brand managers t.pdf
1Social media has become more important to brand managers t.pdf
 
1How can you predict whether a BCL protein is proapoptotic.pdf
1How can you predict whether a BCL protein is proapoptotic.pdf1How can you predict whether a BCL protein is proapoptotic.pdf
1How can you predict whether a BCL protein is proapoptotic.pdf
 
1In the short story of The Lesson By Toni Cade Bambara what.pdf
1In the short story of The Lesson By Toni Cade Bambara what.pdf1In the short story of The Lesson By Toni Cade Bambara what.pdf
1In the short story of The Lesson By Toni Cade Bambara what.pdf
 
1Qu recursos subyacen a la posicin competitiva de Southw.pdf
1Qu recursos subyacen a la posicin competitiva de Southw.pdf1Qu recursos subyacen a la posicin competitiva de Southw.pdf
1Qu recursos subyacen a la posicin competitiva de Southw.pdf
 
1Gayri Safi Yurtii Hasla Neleri Kapsar A Belirli bir yl.pdf
1Gayri Safi Yurtii Hasla Neleri Kapsar  A Belirli bir yl.pdf1Gayri Safi Yurtii Hasla Neleri Kapsar  A Belirli bir yl.pdf
1Gayri Safi Yurtii Hasla Neleri Kapsar A Belirli bir yl.pdf
 
1Genel olarak firma neden dier firmalar satn almaya alr .pdf
1Genel olarak firma neden dier firmalar satn almaya alr  .pdf1Genel olarak firma neden dier firmalar satn almaya alr  .pdf
1Genel olarak firma neden dier firmalar satn almaya alr .pdf
 
1Explain in your own words what brand loyalty is Why would.pdf
1Explain in your own words what brand loyalty is Why would.pdf1Explain in your own words what brand loyalty is Why would.pdf
1Explain in your own words what brand loyalty is Why would.pdf
 
1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf
1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf
1Empati i iletiiminin hedef kitlesiyle iliki kurmada hangi.pdf
 
1Differentiate between storage area network and network att.pdf
1Differentiate between storage area network and network att.pdf1Differentiate between storage area network and network att.pdf
1Differentiate between storage area network and network att.pdf
 
1Create and upload an image of your hypothetical family org.pdf
1Create and upload an image of your hypothetical family org.pdf1Create and upload an image of your hypothetical family org.pdf
1Create and upload an image of your hypothetical family org.pdf
 
19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf
19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf
19 Fitness endstrisinde sat yapmaktan holanmamak yaygndr .pdf
 
1Dr Taylor was interested to know if there would be a dif.pdf
1Dr Taylor was interested to know if there would be a dif.pdf1Dr Taylor was interested to know if there would be a dif.pdf
1Dr Taylor was interested to know if there would be a dif.pdf
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 

1713 Homework 6 P2 Two smallest values A file called data.pdf

  • 1. 17.13 Homework 6, P2: Two smallest values A file called data.txt contains a set of integer numbers. Find the two smallest numbers on that file. Your code should use the following function that returns the two smallest integers. void smallestints(FILE *inp, int *pmin1, int *pmin2); Sample Output data.txt: 13019412337162794311529166826654289612 Smallest number:-12 Second smallest number:-8 460148.3125404.q329y7 17.13.1: Homework 6, P2: Two smallest values 0/2 Downloadable files