Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

My C exercises and projects from K.N. King's "C Programming: A Modern Approach 2nd Edition".

License

Notifications You must be signed in to change notification settings

marendowski/knking-c-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

355 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-exercises

My complete C programs, exercises, and projects from K.N. King's "C Programming: A Modern Approach 2nd Edition".

Table of contents

Notice

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.

Chapters

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

Compile and run

Compile

If you are using IDE, you can change standards in there, refer to IDE's manual.

C standards:

  • -std=c89
  • -std=c99
gcc filename.c -o filename -std=c89

Run (Linux)

./filename

Run (Windows)

.\filename.exe

Makefile for more than one source file

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

More solutions

Official 1/3 solutions provided by K.N. King

Solutions by williamgherman

Solutions by Fahien

Solutions by twcamper

Solutions by fordea

Solutions by auwsmit

Solutions by ashksmith

Solutions by cedarbird

Licence and copyright

Programs made by Piotr Marendowski are licensed with BSD 3-Clause License, but programs made by K.N. King are property of W. W. Norton & Company, Inc. see LICENCE file for more information about use, sharing or editing repository and code written here. Copyright (c) 2008, 1996 W. W. Norton & Company, Inc. All rights reserved.

About

My C exercises and projects from K.N. King's "C Programming: A Modern Approach 2nd Edition".

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published