본문 바로가기
솔루션모음/쉽게 풀어 쓴 C언어 Express 이론

[쉽게 풀어 쓴 C언어 Express] 16장 Exercise 해답 솔루션 답지

by 이얏호이야호 2020. 4. 17.

1. (4)

2. (1) fflush()

(2) fgets()

(3) feof()

(4) fscanf()

 

3. (3)

4.

(a)

int i;

scanf("%d", i);

->

int i;

scanf("%d", &i);

(b)

double d;

scanf("%f", &d);

-> double d;

scanf("%lf", &d);

(c)

char s[10];

scanf("%c", s[2]);

->

char s[10];

scanf("%c", &s[2]);

(d)

float f;

scanf("%d", &f);

->

float f;

scanf("%f", &f);

 

 

 

5.

(a) afp = fopen("junk.txt", "a");

(b) pfp = fopen("para.txt", "w+");

(c) bfp = fopen("company.dat", "rb");

 

6. (4)

 

7. (4)

 

8. getchar()

 

 

9. (2)

 

10.

#include <stdio.h>

struct test {

int a;

float b;

}

record;

int main(void) {

FILE *fp=fopen("TEST.DAT", "rb");

fread(&record, sizeof(record), 1, fp);

fclose(fp);

return 0;

}

11.

i = 8

 

 

 

 

 

더 많은  쉽게 풀어 쓴 C언어EXPRESS 이론 솔루션

 https://chuinggun.tistory.com/category/%EC%86%94%EB%A3%A8%EC%85%98%EB%AA%A8%EC%9D%8C/%EC%89%BD%EA%B2%8C%20%ED%92%80%EC%96%B4%20%EC%93%B4%20C%EC%96%B8%EC%96%B4%20Express%20%EC%9D%B4%EB%A1%A0

더 많은 쉽게 풀어 쓴 C언어EXPRESS 프로그래밍 솔루션 : 

https://chuinggun.tistory.com/category/%EC%86%94%EB%A3%A8%EC%85%98%EB%AA%A8%EC%9D%8C/%EC%89%BD%EA%B2%8C%20%ED%92%80%EC%96%B4%20%EC%93%B4%20C%EC%96%B8%EC%96%B4%20Express%20%EC%8B%A4%EC%8A%B5%EB%AC%B8%EC%A0%9C

 

댓글