Exercise 5-6 (Pointer variants of previous programs)
Chapter_5 Exercise_5-5 | Exercise_5-6-1 Exercise_5-7 |
Exercise 5-6 K&R, p. 107
Exercise 5-6. Rewrite appropriate programs from earlier chapters and exercises with pointers instead of array indexing. Good possibilities include getline() (Chapters 1 and 4), atoi(), itoa(), and their variants (Chapters 2, 3, and 4), reverse(), (Chapter 3), and strindex() and getop() (Chapter 4).
CONTENTS:
Exercise_5-6-1 (getline, Sec. 1.9): longest.c longline.c prnln.c trimfile (trimfile1.c, trimfile2.c) reverse.c extlong.c copy.c Exercise_5-6-2 (conversions - String to decimal): atoi.c atou.c atof.c atog.c Exercise_5-6-3 (conversions - Base to decimal): htoi.c otoi.c btoi.c Exercise_5-6-4 (conversions - Decimal to string): itoa.c itoar.c utoa.c itob.c itoap.c Exercise_5-6-5 (chars): case.c conditional (case1.c, case2.c) escapes.c Exercise_5-6-6 (strings): squeeze.c squeezes (squeeze1.c, squeeze2.c) anychar.c reverse (reverse1.c, reverse2.c) Exercise_5-6-7 (sort): binsearch.c shellsort (shellc.c, shelli.c) qsort (qsort1.c, qsort2.c) Exercise_5-6-8 (trim): trim.c trimg.c Exercise_5-6-9 (pattern): Khayam.txt pattern.c patternr.c Exercise_5-6-10 (calculator): compute.txt calc1.c getcalc.c
Chapter_5 Exercise_5-5 | BACK_TO_TOP | Exercise_5-6-1 Exercise_5-7 |
Comments
Post a Comment