Text: Do problem 4 only, please.
Problems: 41 points total.
Each problem should be two sentences or less. Headers are intentionally omitted; that is not the problem.
Problem 15:
int main() {
fprintf("Hello, world1\n");
return 0;
}
Problem 4:
struct coord_struct {
double x;
double y;
}
Problem 25:
int main() {
char s[80];
typedef struct coord_struct coord;
int main() {
coord c = malloc(sizeof(coord));
printf("Say something: ");
s = fgets(s, 80, stdin);
printf("You said: %s", s);
return 5;
}
printf("Enter x: ");
fgets(s, 79, stdin);
c->x = atof(s);
printf("Enter y: ");
fgets(s, 79, stdin);
c->y = atof(s);
printf("Coords are %lf %lf. In c->x c->y;
free(c);
free(s);
return;
}
Problem 3:
int main() {
FILE *ofp;
int n = -10;
}