SlideShare a Scribd company logo
In c code, fill in the blank
#include
#include
#include
int extraMemoryAllocated;
// implement merge sort
// extraMemoryAllocated counts bytes of extra memory allocated
void mergeSort(int pData[], int l, int r)
{
}
// implement insertion sort
// extraMemoryAllocated counts bytes of memory allocated
void insertionSort(int* pData, int n)
{
}
// implement bubble sort
// extraMemoryAllocated counts bytes of extra memory allocated
void bubbleSort(int* pData, int n)
{
}
// implement selection sort
// extraMemoryAllocated counts bytes of extra memory allocated
void selectionSort(int* pData, int n)
{
}
// parses input file to an integer array
int parseData(char *inputFileName, int **ppData)
{
FILE* inFile = fopen(inputFileName,"r");
int dataSz = 0;
*ppData = NULL;
if (inFile)
{
fscanf(inFile,"%dn",&dataSz);
*ppData = (int *)malloc(sizeof(int) * dataSz);
// Implement parse data block
}
return dataSz;
}
// prints first and last 100 items in the data array
void printArray(int pData[], int dataSz)
{
int i, sz = dataSz - 100;
printf("tData:nt");
for (i=0;i<100;++i)
{
printf("%d ",pData[i]);
}
printf("nt");
for (i=sz;i
#include
#include
int extraMemoryAllocated;
// implement merge sort
// extraMemoryAllocated counts bytes of extra memory allocated
void mergeSort(int pData[], int l, int r)
{
}
// implement insertion sort
// extraMemoryAllocated counts bytes of memory allocated
void insertionSort(int* pData, int n)
{
}
// implement bubble sort
// extraMemoryAllocated counts bytes of extra memory allocated
void bubbleSort(int* pData, int n)
{
}
// implement selection sort
// extraMemoryAllocated counts bytes of extra memory allocated
void selectionSort(int* pData, int n)
{
}
// parses input file to an integer array
int parseData(char *inputFileName, int **ppData)
{
FILE* inFile = fopen(inputFileName,"r");
int dataSz = 0;
*ppData = NULL;
if (inFile)
{
fscanf(inFile,"%dn",&dataSz);
*ppData = (int *)malloc(sizeof(int) * dataSz);
// Implement parse data block
}
return dataSz;
}
// prints first and last 100 items in the data array
void printArray(int pData[], int dataSz)
{
int i, sz = dataSz - 100;
printf("tData:nt");
for (i=0;i<100;++i)
{
printf("%d ",pData[i]);
}
printf("nt");
for (i=sz;i

More Related Content

Similar to In c code, fill in the blank#include time.h#include std.pdf

C-Program Custom Library, Header File, and Implementation FilesI .pdf
C-Program Custom Library, Header File, and Implementation FilesI .pdfC-Program Custom Library, Header File, and Implementation FilesI .pdf
C-Program Custom Library, Header File, and Implementation FilesI .pdf
herminaherman
 
IN C LANGUAGE- I've been trying to finish this program for the last fe.docx
IN C LANGUAGE- I've been trying to finish this program for the last fe.docxIN C LANGUAGE- I've been trying to finish this program for the last fe.docx
IN C LANGUAGE- I've been trying to finish this program for the last fe.docx
GordonpACKellyb
 
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdfplease navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
aioils
 
RightTrianglerightTriangle.cppRightTrianglerightTriangle.cpp.docx
RightTrianglerightTriangle.cppRightTrianglerightTriangle.cpp.docxRightTrianglerightTriangle.cppRightTrianglerightTriangle.cpp.docx
RightTrianglerightTriangle.cppRightTrianglerightTriangle.cpp.docx
joellemurphey
 
Dynamic Memory Allocation.pptx
Dynamic Memory Allocation.pptxDynamic Memory Allocation.pptx
Dynamic Memory Allocation.pptx
ssuser688516
 
Please answer the 4 questions using C- The expected output is shown be.docx
Please answer the 4 questions using C- The expected output is shown be.docxPlease answer the 4 questions using C- The expected output is shown be.docx
Please answer the 4 questions using C- The expected output is shown be.docx
cgraciela1
 
DMA.pptx
DMA.pptxDMA.pptx
Data structures
Data structuresData structures
Data structures
gayatrigayu1
 
Programming in C
Programming in CProgramming in C
Programming in C
nagathangaraj
 
C
CC
HERE is a C PROGRAM BELOW EVERYTIME I TRY TO RUN IT ON MATRIX IT GI.pdf
HERE is a C PROGRAM BELOW EVERYTIME I TRY TO RUN IT ON MATRIX IT GI.pdfHERE is a C PROGRAM BELOW EVERYTIME I TRY TO RUN IT ON MATRIX IT GI.pdf
HERE is a C PROGRAM BELOW EVERYTIME I TRY TO RUN IT ON MATRIX IT GI.pdf
fashiongallery1
 
888678123317368915236 #include stdio.h #include stdlib.h.pdf
888678123317368915236 #include stdio.h #include stdlib.h.pdf888678123317368915236 #include stdio.h #include stdlib.h.pdf
888678123317368915236 #include stdio.h #include stdlib.h.pdf
apnafreez
 
Write a C++ program 1. Study the function process_text() in file.pdf
Write a C++ program 1. Study the function process_text() in file.pdfWrite a C++ program 1. Study the function process_text() in file.pdf
Write a C++ program 1. Study the function process_text() in file.pdf
jillisacebi75827
 
MAINCPP include ltiostreamgt include ltstringgt u.pdf
MAINCPP include ltiostreamgt include ltstringgt u.pdfMAINCPP include ltiostreamgt include ltstringgt u.pdf
MAINCPP include ltiostreamgt include ltstringgt u.pdf
adityastores21
 
DS UNIT3_LINKED LISTS.docx
DS UNIT3_LINKED LISTS.docxDS UNIT3_LINKED LISTS.docx
DS UNIT3_LINKED LISTS.docx
VeerannaKotagi1
 
num.txt(Save this file under D Drive.Then the path of the file is D.pdf
num.txt(Save this file under D Drive.Then the path of the file is D.pdfnum.txt(Save this file under D Drive.Then the path of the file is D.pdf
num.txt(Save this file under D Drive.Then the path of the file is D.pdf
ANSAPPARELS
 
finalprojtemplatev5finalprojtemplate.gitignore# Ignore the b
finalprojtemplatev5finalprojtemplate.gitignore# Ignore the bfinalprojtemplatev5finalprojtemplate.gitignore# Ignore the b
finalprojtemplatev5finalprojtemplate.gitignore# Ignore the b
ChereCheek752
 
C#i need help creating the instance of stream reader to read from .pdf
C#i need help creating the instance of stream reader to read from .pdfC#i need help creating the instance of stream reader to read from .pdf
C#i need help creating the instance of stream reader to read from .pdf
ajantha11
 
golang_refcard.pdf
golang_refcard.pdfgolang_refcard.pdf
golang_refcard.pdf
Spam92
 
Hooking signals and dumping the callstack
Hooking signals and dumping the callstackHooking signals and dumping the callstack
Hooking signals and dumping the callstack
Thierry Gayet
 

Similar to In c code, fill in the blank#include time.h#include std.pdf (20)

C-Program Custom Library, Header File, and Implementation FilesI .pdf
C-Program Custom Library, Header File, and Implementation FilesI .pdfC-Program Custom Library, Header File, and Implementation FilesI .pdf
C-Program Custom Library, Header File, and Implementation FilesI .pdf
 
IN C LANGUAGE- I've been trying to finish this program for the last fe.docx
IN C LANGUAGE- I've been trying to finish this program for the last fe.docxIN C LANGUAGE- I've been trying to finish this program for the last fe.docx
IN C LANGUAGE- I've been trying to finish this program for the last fe.docx
 
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdfplease navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
please navigate to cs112 webpage and go to assignments -- Trees. Th.pdf
 
RightTrianglerightTriangle.cppRightTrianglerightTriangle.cpp.docx
RightTrianglerightTriangle.cppRightTrianglerightTriangle.cpp.docxRightTrianglerightTriangle.cppRightTrianglerightTriangle.cpp.docx
RightTrianglerightTriangle.cppRightTrianglerightTriangle.cpp.docx
 
Dynamic Memory Allocation.pptx
Dynamic Memory Allocation.pptxDynamic Memory Allocation.pptx
Dynamic Memory Allocation.pptx
 
Please answer the 4 questions using C- The expected output is shown be.docx
Please answer the 4 questions using C- The expected output is shown be.docxPlease answer the 4 questions using C- The expected output is shown be.docx
Please answer the 4 questions using C- The expected output is shown be.docx
 
DMA.pptx
DMA.pptxDMA.pptx
DMA.pptx
 
Data structures
Data structuresData structures
Data structures
 
Programming in C
Programming in CProgramming in C
Programming in C
 
C
CC
C
 
HERE is a C PROGRAM BELOW EVERYTIME I TRY TO RUN IT ON MATRIX IT GI.pdf
HERE is a C PROGRAM BELOW EVERYTIME I TRY TO RUN IT ON MATRIX IT GI.pdfHERE is a C PROGRAM BELOW EVERYTIME I TRY TO RUN IT ON MATRIX IT GI.pdf
HERE is a C PROGRAM BELOW EVERYTIME I TRY TO RUN IT ON MATRIX IT GI.pdf
 
888678123317368915236 #include stdio.h #include stdlib.h.pdf
888678123317368915236 #include stdio.h #include stdlib.h.pdf888678123317368915236 #include stdio.h #include stdlib.h.pdf
888678123317368915236 #include stdio.h #include stdlib.h.pdf
 
Write a C++ program 1. Study the function process_text() in file.pdf
Write a C++ program 1. Study the function process_text() in file.pdfWrite a C++ program 1. Study the function process_text() in file.pdf
Write a C++ program 1. Study the function process_text() in file.pdf
 
MAINCPP include ltiostreamgt include ltstringgt u.pdf
MAINCPP include ltiostreamgt include ltstringgt u.pdfMAINCPP include ltiostreamgt include ltstringgt u.pdf
MAINCPP include ltiostreamgt include ltstringgt u.pdf
 
DS UNIT3_LINKED LISTS.docx
DS UNIT3_LINKED LISTS.docxDS UNIT3_LINKED LISTS.docx
DS UNIT3_LINKED LISTS.docx
 
num.txt(Save this file under D Drive.Then the path of the file is D.pdf
num.txt(Save this file under D Drive.Then the path of the file is D.pdfnum.txt(Save this file under D Drive.Then the path of the file is D.pdf
num.txt(Save this file under D Drive.Then the path of the file is D.pdf
 
finalprojtemplatev5finalprojtemplate.gitignore# Ignore the b
finalprojtemplatev5finalprojtemplate.gitignore# Ignore the bfinalprojtemplatev5finalprojtemplate.gitignore# Ignore the b
finalprojtemplatev5finalprojtemplate.gitignore# Ignore the b
 
C#i need help creating the instance of stream reader to read from .pdf
C#i need help creating the instance of stream reader to read from .pdfC#i need help creating the instance of stream reader to read from .pdf
C#i need help creating the instance of stream reader to read from .pdf
 
golang_refcard.pdf
golang_refcard.pdfgolang_refcard.pdf
golang_refcard.pdf
 
Hooking signals and dumping the callstack
Hooking signals and dumping the callstackHooking signals and dumping the callstack
Hooking signals and dumping the callstack
 

More from manojmozy

IDENTIFY AND DISCUSS ONE LOCAL PROJECT THAT USED PROJECT FINANCE OR .pdf
IDENTIFY AND DISCUSS ONE LOCAL PROJECT THAT USED PROJECT FINANCE OR .pdfIDENTIFY AND DISCUSS ONE LOCAL PROJECT THAT USED PROJECT FINANCE OR .pdf
IDENTIFY AND DISCUSS ONE LOCAL PROJECT THAT USED PROJECT FINANCE OR .pdf
manojmozy
 
If we wanted to use the AWS CLI outside of AWS (on our local PCs) wh.pdf
If we wanted to use the AWS CLI outside of AWS (on our local PCs) wh.pdfIf we wanted to use the AWS CLI outside of AWS (on our local PCs) wh.pdf
If we wanted to use the AWS CLI outside of AWS (on our local PCs) wh.pdf
manojmozy
 
Identifique los cinco principales pa�ses receptores de IED de EE. UU.pdf
Identifique los cinco principales pa�ses receptores de IED de EE. UU.pdfIdentifique los cinco principales pa�ses receptores de IED de EE. UU.pdf
Identifique los cinco principales pa�ses receptores de IED de EE. UU.pdf
manojmozy
 
If X is a random variable with mean 10 and standard deviation 5, whi.pdf
If X is a random variable with mean 10 and standard deviation 5, whi.pdfIf X is a random variable with mean 10 and standard deviation 5, whi.pdf
If X is a random variable with mean 10 and standard deviation 5, whi.pdf
manojmozy
 
Identifique la variable de control para la carga de aerosoles atmosf�r.pdf
Identifique la variable de control para la carga de aerosoles atmosf�r.pdfIdentifique la variable de control para la carga de aerosoles atmosf�r.pdf
Identifique la variable de control para la carga de aerosoles atmosf�r.pdf
manojmozy
 
identifying customer needs.step1 Gather raw datastep 2 Interpret.pdf
identifying customer needs.step1 Gather raw datastep 2 Interpret.pdfidentifying customer needs.step1 Gather raw datastep 2 Interpret.pdf
identifying customer needs.step1 Gather raw datastep 2 Interpret.pdf
manojmozy
 
If CO2 is the acceptor in anaerobic chemolithotrophy, the donor coul.pdf
If CO2 is the acceptor in anaerobic chemolithotrophy, the donor coul.pdfIf CO2 is the acceptor in anaerobic chemolithotrophy, the donor coul.pdf
If CO2 is the acceptor in anaerobic chemolithotrophy, the donor coul.pdf
manojmozy
 
Identify a routine task that you might need to communicate in an off.pdf
Identify a routine task that you might need to communicate in an off.pdfIdentify a routine task that you might need to communicate in an off.pdf
Identify a routine task that you might need to communicate in an off.pdf
manojmozy
 
If a coefficient B is estimated to be very close to zero (e.g., 0.00.pdf
If a coefficient B is estimated to be very close to zero (e.g., 0.00.pdfIf a coefficient B is estimated to be very close to zero (e.g., 0.00.pdf
If a coefficient B is estimated to be very close to zero (e.g., 0.00.pdf
manojmozy
 
i. If a product has nonuniform inputs, is WIP generally divided betw.pdf
i. If a product has nonuniform inputs, is WIP generally divided betw.pdfi. If a product has nonuniform inputs, is WIP generally divided betw.pdf
i. If a product has nonuniform inputs, is WIP generally divided betw.pdf
manojmozy
 
identify and compare three different mobile device management (MDM) .pdf
identify and compare three different mobile device management (MDM) .pdfidentify and compare three different mobile device management (MDM) .pdf
identify and compare three different mobile device management (MDM) .pdf
manojmozy
 
IBM�s Stretch Project. 2500 words1. Title Page2.Introduction3..pdf
IBM�s Stretch Project. 2500 words1. Title Page2.Introduction3..pdfIBM�s Stretch Project. 2500 words1. Title Page2.Introduction3..pdf
IBM�s Stretch Project. 2500 words1. Title Page2.Introduction3..pdf
manojmozy
 
i. Define Property, Plant and Equipment as stipulated by IAS 16 (3 .pdf
i. Define Property, Plant and Equipment as stipulated by IAS 16 (3 .pdfi. Define Property, Plant and Equipment as stipulated by IAS 16 (3 .pdf
i. Define Property, Plant and Equipment as stipulated by IAS 16 (3 .pdf
manojmozy
 
IDEO, Amerika Birleik Devletlerindeki en b�y�k ve en etkili tasarm .pdf
IDEO, Amerika Birleik Devletlerindeki en b�y�k ve en etkili tasarm .pdfIDEO, Amerika Birleik Devletlerindeki en b�y�k ve en etkili tasarm .pdf
IDEO, Amerika Birleik Devletlerindeki en b�y�k ve en etkili tasarm .pdf
manojmozy
 
Identify and explain two (2) examples of collaborative care that cou.pdf
Identify and explain two (2) examples of collaborative care that cou.pdfIdentify and explain two (2) examples of collaborative care that cou.pdf
Identify and explain two (2) examples of collaborative care that cou.pdf
manojmozy
 
I. Assessment(s) DescriptionFor this exercise, students are supp.pdf
I. Assessment(s) DescriptionFor this exercise, students are supp.pdfI. Assessment(s) DescriptionFor this exercise, students are supp.pdf
I. Assessment(s) DescriptionFor this exercise, students are supp.pdf
manojmozy
 
If the fixed costs are NOK 50,000 and the variable cost can be expre.pdf
If the fixed costs are NOK 50,000 and the variable cost can be expre.pdfIf the fixed costs are NOK 50,000 and the variable cost can be expre.pdf
If the fixed costs are NOK 50,000 and the variable cost can be expre.pdf
manojmozy
 
If an individual shopping for groceries opens a bottle of water from.pdf
If an individual shopping for groceries opens a bottle of water from.pdfIf an individual shopping for groceries opens a bottle of water from.pdf
If an individual shopping for groceries opens a bottle of water from.pdf
manojmozy
 
Identify at least eight (8) accounting software. 2. Your list must i.pdf
Identify at least eight (8) accounting software. 2. Your list must i.pdfIdentify at least eight (8) accounting software. 2. Your list must i.pdf
Identify at least eight (8) accounting software. 2. Your list must i.pdf
manojmozy
 
Identify the FALSE statement. Radiometric dating1. of metamorphic .pdf
Identify the FALSE statement. Radiometric dating1. of metamorphic .pdfIdentify the FALSE statement. Radiometric dating1. of metamorphic .pdf
Identify the FALSE statement. Radiometric dating1. of metamorphic .pdf
manojmozy
 

More from manojmozy (20)

IDENTIFY AND DISCUSS ONE LOCAL PROJECT THAT USED PROJECT FINANCE OR .pdf
IDENTIFY AND DISCUSS ONE LOCAL PROJECT THAT USED PROJECT FINANCE OR .pdfIDENTIFY AND DISCUSS ONE LOCAL PROJECT THAT USED PROJECT FINANCE OR .pdf
IDENTIFY AND DISCUSS ONE LOCAL PROJECT THAT USED PROJECT FINANCE OR .pdf
 
If we wanted to use the AWS CLI outside of AWS (on our local PCs) wh.pdf
If we wanted to use the AWS CLI outside of AWS (on our local PCs) wh.pdfIf we wanted to use the AWS CLI outside of AWS (on our local PCs) wh.pdf
If we wanted to use the AWS CLI outside of AWS (on our local PCs) wh.pdf
 
Identifique los cinco principales pa�ses receptores de IED de EE. UU.pdf
Identifique los cinco principales pa�ses receptores de IED de EE. UU.pdfIdentifique los cinco principales pa�ses receptores de IED de EE. UU.pdf
Identifique los cinco principales pa�ses receptores de IED de EE. UU.pdf
 
If X is a random variable with mean 10 and standard deviation 5, whi.pdf
If X is a random variable with mean 10 and standard deviation 5, whi.pdfIf X is a random variable with mean 10 and standard deviation 5, whi.pdf
If X is a random variable with mean 10 and standard deviation 5, whi.pdf
 
Identifique la variable de control para la carga de aerosoles atmosf�r.pdf
Identifique la variable de control para la carga de aerosoles atmosf�r.pdfIdentifique la variable de control para la carga de aerosoles atmosf�r.pdf
Identifique la variable de control para la carga de aerosoles atmosf�r.pdf
 
identifying customer needs.step1 Gather raw datastep 2 Interpret.pdf
identifying customer needs.step1 Gather raw datastep 2 Interpret.pdfidentifying customer needs.step1 Gather raw datastep 2 Interpret.pdf
identifying customer needs.step1 Gather raw datastep 2 Interpret.pdf
 
If CO2 is the acceptor in anaerobic chemolithotrophy, the donor coul.pdf
If CO2 is the acceptor in anaerobic chemolithotrophy, the donor coul.pdfIf CO2 is the acceptor in anaerobic chemolithotrophy, the donor coul.pdf
If CO2 is the acceptor in anaerobic chemolithotrophy, the donor coul.pdf
 
Identify a routine task that you might need to communicate in an off.pdf
Identify a routine task that you might need to communicate in an off.pdfIdentify a routine task that you might need to communicate in an off.pdf
Identify a routine task that you might need to communicate in an off.pdf
 
If a coefficient B is estimated to be very close to zero (e.g., 0.00.pdf
If a coefficient B is estimated to be very close to zero (e.g., 0.00.pdfIf a coefficient B is estimated to be very close to zero (e.g., 0.00.pdf
If a coefficient B is estimated to be very close to zero (e.g., 0.00.pdf
 
i. If a product has nonuniform inputs, is WIP generally divided betw.pdf
i. If a product has nonuniform inputs, is WIP generally divided betw.pdfi. If a product has nonuniform inputs, is WIP generally divided betw.pdf
i. If a product has nonuniform inputs, is WIP generally divided betw.pdf
 
identify and compare three different mobile device management (MDM) .pdf
identify and compare three different mobile device management (MDM) .pdfidentify and compare three different mobile device management (MDM) .pdf
identify and compare three different mobile device management (MDM) .pdf
 
IBM�s Stretch Project. 2500 words1. Title Page2.Introduction3..pdf
IBM�s Stretch Project. 2500 words1. Title Page2.Introduction3..pdfIBM�s Stretch Project. 2500 words1. Title Page2.Introduction3..pdf
IBM�s Stretch Project. 2500 words1. Title Page2.Introduction3..pdf
 
i. Define Property, Plant and Equipment as stipulated by IAS 16 (3 .pdf
i. Define Property, Plant and Equipment as stipulated by IAS 16 (3 .pdfi. Define Property, Plant and Equipment as stipulated by IAS 16 (3 .pdf
i. Define Property, Plant and Equipment as stipulated by IAS 16 (3 .pdf
 
IDEO, Amerika Birleik Devletlerindeki en b�y�k ve en etkili tasarm .pdf
IDEO, Amerika Birleik Devletlerindeki en b�y�k ve en etkili tasarm .pdfIDEO, Amerika Birleik Devletlerindeki en b�y�k ve en etkili tasarm .pdf
IDEO, Amerika Birleik Devletlerindeki en b�y�k ve en etkili tasarm .pdf
 
Identify and explain two (2) examples of collaborative care that cou.pdf
Identify and explain two (2) examples of collaborative care that cou.pdfIdentify and explain two (2) examples of collaborative care that cou.pdf
Identify and explain two (2) examples of collaborative care that cou.pdf
 
I. Assessment(s) DescriptionFor this exercise, students are supp.pdf
I. Assessment(s) DescriptionFor this exercise, students are supp.pdfI. Assessment(s) DescriptionFor this exercise, students are supp.pdf
I. Assessment(s) DescriptionFor this exercise, students are supp.pdf
 
If the fixed costs are NOK 50,000 and the variable cost can be expre.pdf
If the fixed costs are NOK 50,000 and the variable cost can be expre.pdfIf the fixed costs are NOK 50,000 and the variable cost can be expre.pdf
If the fixed costs are NOK 50,000 and the variable cost can be expre.pdf
 
If an individual shopping for groceries opens a bottle of water from.pdf
If an individual shopping for groceries opens a bottle of water from.pdfIf an individual shopping for groceries opens a bottle of water from.pdf
If an individual shopping for groceries opens a bottle of water from.pdf
 
Identify at least eight (8) accounting software. 2. Your list must i.pdf
Identify at least eight (8) accounting software. 2. Your list must i.pdfIdentify at least eight (8) accounting software. 2. Your list must i.pdf
Identify at least eight (8) accounting software. 2. Your list must i.pdf
 
Identify the FALSE statement. Radiometric dating1. of metamorphic .pdf
Identify the FALSE statement. Radiometric dating1. of metamorphic .pdfIdentify the FALSE statement. Radiometric dating1. of metamorphic .pdf
Identify the FALSE statement. Radiometric dating1. of metamorphic .pdf
 

Recently uploaded

NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 

Recently uploaded (20)

NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 

In c code, fill in the blank#include time.h#include std.pdf

  • 1. In c code, fill in the blank #include #include #include int extraMemoryAllocated; // implement merge sort // extraMemoryAllocated counts bytes of extra memory allocated void mergeSort(int pData[], int l, int r)
  • 2. { } // implement insertion sort // extraMemoryAllocated counts bytes of memory allocated void insertionSort(int* pData, int n) { }
  • 3. // implement bubble sort // extraMemoryAllocated counts bytes of extra memory allocated void bubbleSort(int* pData, int n) { } // implement selection sort // extraMemoryAllocated counts bytes of extra memory allocated void selectionSort(int* pData, int n)
  • 4. { } // parses input file to an integer array int parseData(char *inputFileName, int **ppData) { FILE* inFile = fopen(inputFileName,"r"); int dataSz = 0; *ppData = NULL;
  • 5. if (inFile) { fscanf(inFile,"%dn",&dataSz); *ppData = (int *)malloc(sizeof(int) * dataSz); // Implement parse data block } return dataSz; } // prints first and last 100 items in the data array
  • 6. void printArray(int pData[], int dataSz) { int i, sz = dataSz - 100; printf("tData:nt"); for (i=0;i<100;++i) { printf("%d ",pData[i]); } printf("nt"); for (i=sz;i #include
  • 7. #include int extraMemoryAllocated; // implement merge sort // extraMemoryAllocated counts bytes of extra memory allocated void mergeSort(int pData[], int l, int r) { }
  • 8. // implement insertion sort // extraMemoryAllocated counts bytes of memory allocated void insertionSort(int* pData, int n) { } // implement bubble sort // extraMemoryAllocated counts bytes of extra memory allocated
  • 9. void bubbleSort(int* pData, int n) { } // implement selection sort // extraMemoryAllocated counts bytes of extra memory allocated void selectionSort(int* pData, int n) { }
  • 10. // parses input file to an integer array int parseData(char *inputFileName, int **ppData) { FILE* inFile = fopen(inputFileName,"r"); int dataSz = 0; *ppData = NULL; if (inFile) { fscanf(inFile,"%dn",&dataSz);
  • 11. *ppData = (int *)malloc(sizeof(int) * dataSz); // Implement parse data block } return dataSz; } // prints first and last 100 items in the data array void printArray(int pData[], int dataSz) { int i, sz = dataSz - 100;