ohkimur/the-c-programming-language-2nd-edition-solutions
소개
Brian W. Kernighan과 Dennis M. Ritchie가 쓴 『The C Programming Language』 제2판의 연습 문제 풀이입니다. 이 책은 K&R이라고도 불립니다.
프로그래밍 언어 및 런타임측정된 스타 증가
- in 24h
- +1
- in 7 days
- +1
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalThe C Programming Language 2nd Edition - Solutions
Solutions to exercises from The C Programming Language (2nd Edition) by Brian W. Kernighan and Dennis M. Ritchie, commonly known as K&R.
Getting Started
Prerequisites
You need a C compiler:
macOS:
xcode-select --install
Ubuntu / Debian:
sudo apt-get update && sudo apt-get install build-essential
Windows: Use WSL (recommended) or MinGW.
Building
Build all exercises:
make
Build a specific exercise:
cd chapter_1/exercise_1_01
make hello_world
./hello_world
Clean up:
make clean
Repository Structure
chapter_N/
exercise_N_XX/
solution.c # Solution source code
file_in.txt # Input file (if needed)
file_out.txt # Output file (if needed)
Contributing
Contributions are welcome! See CONTRIBUTING.md for guidelines.
Quick start:
make format # Format your code
make check # Run all checks before submitting
About the Book
The C Programming Language is a classic programming book. The exercises are designed so that you can solve them with the knowledge acquired up to that point in the book.
These solutions are meant to help those learning C. If you're working through the book, try solving the exercises yourself first!
Tools
- Editor: Any text editor works. VS Code with the C/C++ extension is recommended.
- Debugger: LLDB (macOS) or GDB (Linux)
- Formatter: clang-format
License
This project is open source. Feel free to use these solutions for learning!
관련 프로젝트 살펴보기
불러오는 중…