Skip to content

Commit 428925f

Browse files
authored
update exercises chapter 2 to 6
1 parent 7496fa7 commit 428925f

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

‎README.md‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,73 @@ Source code and solutions of exercises to _The C Programming Language 2nd Editio
3232
1. 1-24 skipped
3333

3434
### 2. Types operators expressions
35+
1. [2-1](./chapter-2-types-operators-expressions/1.ranges-of-variables.c)
36+
1. [2-2](./chapter-2-types-operators-expressions/2.loop-without-logical-operators.c)
37+
1. [2-3](./chapter-2-types-operators-expressions/3.atoi.c)
38+
1. [2-4](./chapter-2-types-operators-expressions/8.squeeze2.c)
39+
1. [2-5](./chapter-2-types-operators-expressions/9.any.c)
40+
1. [2-6](./chapter-2-types-operators-expressions/11.setbits.c)
41+
1. [2-7](./chapter-2-types-operators-expressions/12.invert.c)
42+
1. [2-8](./chapter-2-types-operators-expressions/13.rightrot.c)
43+
1. [2-9](./chapter-2-types-operators-expressions/15.bitcount2.c)
44+
1. [2-10](./chapter-2-types-operators-expressions/16.lower2.c)
3545

3646
### 3. Control flow
47+
1. [3-1](./chapter-3-control-flow/01.binsearch.c)
48+
1. 3-2
49+
* [escape](./chapter-3-control-flow/03.escape.c)
50+
* [unescape](./chapter-3-control-flow/04.unescape.c)
51+
1. [3-3](./chapter-3-control-flow/08.expand.c)
52+
1. [3-4](./chapter-3-control-flow/09.itoa.c)
53+
1. [3-5](./chapter-3-control-flow/10.itob.c)
54+
1. [3-6](./chapter-3-control-flow/11.itoa.c)
3755

3856
### 4. Functions and program structure
57+
1. [4-1](./chapter-4-functions-and-program-structure/2.strrindex.c)
58+
1. [4-2](./chapter-4-functions-and-program-structure/3.atof-test.c)
59+
1. [4-3, 4-3, 4-5, 4-6](./chapter-4-functions-and-program-structure/4.reverse-polish-calculator.c)
60+
1. [4-7](./chapter-4-functions-and-program-structure/getch.c)
61+
1. [4-8](./chapter-4-functions-and-program-structure/getch.c)
62+
1. 4-9 skipped
63+
1. 4-10 skipped
64+
1. [4-11](./chapter-4-functions-and-program-structure/5.getop-with-static.c)
65+
1. [4-12](./chapter-4-functions-and-program-structure/9.itoa-recursive.c)
66+
1. [4-13](./chapter-4-functions-and-program-structure/10.reverse.recursive.c)
67+
1. [4-14](./chapter-4-functions-and-program-structure/11.swap-macro.c)
3968

4069
### 5. pointers and arrays
70+
1. [5-1](./chapter-5-pointers-and-arrays/3.getint.c)
71+
1. [5-2](./chapter-5-pointers-and-arrays/4.getfloat.c)
72+
1. [5-3](./chapter-5-pointers-and-arrays/15.strcat-pointer.c)
73+
1. [5-4](./chapter-5-pointers-and-arrays/16.strend.c)
74+
1. 5-5
75+
* [strcpy](17.strncpy.c)
76+
* [strncat](18.strncat.c)
77+
* [strncmp](19.strncmp.c)
78+
1. [5-6](./chapter-5-pointers-and-arrays/20.getline-pointer.c)
79+
1. [5-7](./chapter-5-pointers-and-arrays/24.pointer-arrays-without-alloc.c)
80+
1. [5-8](./chapter-5-pointers-and-arrays/27.year-month-day-pointer.c)
81+
1. [5-9](./chapter-5-pointers-and-arrays/27.year-month-day-pointer.c)
82+
1. [5-10](./chapter-5-pointers-and-arrays/32.expr.c)
83+
1. 5-11
84+
* [detab](./chapter-5-pointers-and-arrays/33.detab.c)
85+
* [entab](./chapter-5-pointers-and-arrays/34.entab.c)
86+
1. 5-12
87+
* [detab](./chapter-5-pointers-and-arrays/35.detab-arg.c)
88+
* [entab](./chapter-5-pointers-and-arrays/36.entab-arg.c)
89+
1. [5-13](./chapter-5-pointers-and-arrays/37.tail.c)
90+
1. [5-14](./chapter-5-pointers-and-arrays/39.sort-with-r.c)
91+
1. [5-15](./chapter-5-pointers-and-arrays/40.sort-with-f.c)
92+
1. [5-16](./chapter-5-pointers-and-arrays/41.sort-with-d.c)
93+
1. 5-17 skipped
94+
1. [5-18](./chapter-5-pointers-and-arrays/43.dcl-error-handle.c)
95+
1. [5-19](./chapter-5-pointers-and-arrays/44.undcl.c)
96+
1. 5-20 skipped
4197

4298
### 6. structures
99+
1. [6-1](./chapter-6-structures/3.getword.c)
100+
1. [6-2](./chapter-6-structures/6.variables-group.c)
101+
1. [6-3](./chapter-6-structures/7.words-appear-lines.c)
102+
1. 6-4 skipped
103+
1. [6-5](./chapter-6-structures/)
104+
1. [6-6](./chapter-6-structures/)

0 commit comments

Comments
 (0)