/** * Reading a file using fread. * MUST be pair closely with writer * @authord ggtowell * Created: April 2021 * **/ #include int main(int argc, char const *argv[]) { int a; double b; FILE *fp = fopen("lab18b", "r"); fread(&a, sizeof(int), 1, fp); fread(&b, sizeof(double), 1, fp); fclose(fp); printf("%d %f\n", a, b); return 0; }