So, if I wanted it to take input from somewhere and write on another file what would I have done differently?
Type: Posts; User: CodeMan10
So, if I wanted it to take input from somewhere and write on another file what would I have done differently?
Could you please explain to me why we are not using the commands fopen and fclose since we have to read it from a file and output to a file. Since I am learning I want to be as clear as possible.
I am sorry, I did not get what you just meant.
https://ece15.ucsd.edu/Exams/Problem3/hopscotch.dat-Input file
https://ece15.ucsd.edu/Exams/Problem3/hopscotch.out-Output file
I was using online c compiler. it does not have any debugging tool. Sorry
I am pretty new to programming and I am getting a segmentation fault and I have no idea where this is happening.
#include <stdio.h>
#include <stdlib.h>
#define FIELDWIDTH 3 //The width of the...