Write a program to read a set of integers from a file, sort them and output them into another file
Answers
Answered by
6
Answer:
hy
your answer is here !
Explanation:
open a file: FILE* inFile = fopen("input.txt", "r").
read a single value from the input. int
numConverted = fscanf(inFile, "%d", &value).
allocate some memory: int *pInts = malloc(n * sizeof(int)).
sort the array.
fprintf(outFile, "%d\n", i).
write a single value out as binary.
Similar questions