Program 5
Program 5
h>
#include <stdlib.h>
int main()
if (fptr1 == NULL)
exit(1);
scanf("%d", &num1);
fclose(fptr1);
if (fptr2 == NULL)
exit(1);
scanf("%d", &num2);
fprintf(fptr2, "%d", num2);
fclose(fptr2);
exit(1);
fclose(fptr1);
fclose(fptr2);
return 0;