My complete C programs, exercises, and projects from K.N. King's "C Programming: A Modern Approach 2nd Edition".
- Notice
- Chapters
- Compile and run
- Makefile for more than one source file
- More solutions
- Licence nad copyright
Some programs are not written by me, and the authors are listed there.
I'm currently writing summary of the book (summary.pdf).
I highly recommend making your own repository if you are learning with this book.
02 - C Fundamentals
03 - Formatted Input/Output
04 - Expressions
05 - Selection Statements
06 - Loops
07 - Basic Types
08 - Arrays
09 - Functions
10 - Program Organization
11 - Pointers
12 - Pointers and Arrays
13 - Strings
14 - The preprocessor
15 - Writing Large Programs
16 - Structures, Unions, and Enumerations
17 - Advanced Uses of Pointers
18 - Declarations
19 - Program Design
20 - Low-Level Programming
21 - The Standard Library
22 - Input/Output
23 - Library Support for Numbers and Character Data
24 - Error Handling
25 - International Features
26 - Miscellaneous Library Functions
27 - Additional C99 Support for Mathematics
C standards:
- -std=c89
- -std=c99
gcc filename.c -o filename -std=c89
./filename
.\filename.exe
stack_project is an executable, calc.c and stack.c are dependend on stack.h.
stack_project: calc.o stack.o
gcc calc.o stack.o -o stack_project
calc.o: calc.c stack.h
gcc -c calc.c
stack.o: stack.c stack.h
gcc -c stack.c
Official 1/3 solutions provided by K.N. King