/** * Writing data with fwrite * @author ggtowell * Created: April 2021 * **/ #include int main(int argc, char const *argv[]) { int a = 5; double b = 10.854897548357; FILE *fp = fopen("lab18b", "w"); fwrite(&a, sizeof(int), 1, fp); fwrite(&b, sizeof(double), 1, fp); fclose(fp); return 0; }