introduce
Help C language beginners from getting started to "proficient"
statement
Except for a small number of references to books and technical documents (all pointed out at the end of the article), the rest of the content in this warehouse is my original work. When you quote or modify the content of this repository, please sign it and share it in the same way, thank you.
When reprinting an article, please clearly indicate the page address at the beginning.
navigation
- Learn C language
- C language Q&A
- C classic exercises
- A small game implemented in C
- C course design assignment
- Get free must-read classic e-books on C language
Learn C language
C language programming - an introduction to modern methods
The content of this part is mainly excerpted from "C Language Programming - Modern Methods"
- C language overview
- Basic concepts of C language 1
- Basic concepts of C language 2
- Format input and output
- data type
- expression
- select statement
- cycle
- array
- function
- Program structure
- pointer
- pointers and arrays
- string
- preprocessor
- Write large programs
- Structures & Unions & Enumerations
- Advanced applications of pointers
- statement
- Programming
- Low-level programming
- input/output
- standard library
- Error handling
Basic and advanced content of C language comes from my blog
C language for beginners
This part is my summary of the basic knowledge of C language.
- Data types and variables
- array
- branches and loops
- function
- pointer
- Operator
C language advanced
- Understand what malloc is in 5 minutes
- It is enough to read this article for C language files.
- An article on understanding common string functions in C language, the most comprehensive compilation on the entire web
- What are enumerations & structures & unions? Just read this article.
- What are global variables & macros & how to write large programs? Just read this article
- Several methods of determining prime numbers that you don't know are explained in detail from the simplest to the most profound.
- Things you don’t know about strings
- memory alignment
- Dynamic memory management
- String functions and memory functions
- Little endian and integer storage
- Pointer advanced
- About pointers
- A brief discussion on overloading, polymorphism and templates in C language
- Do you know these basic knowledge points about arrays?
- Those basic knowledge about functions that we tend to ignore
C Pitfalls and Pitfalls
This part of the content comes from "C Traps and Pitfalls". After reading this book, I felt enlightened about the mistakes I made before.
- Vocabulary Trap
- Second syntax trap
- Three semantic traps
- four connections
- Five library functions
- Six preprocessors
- Seven Portable Defects
- Eight suggestions
C classic exercises
practise | introduce | difficulty |
---|
1. Common string/memory function implementation | Main implementation: strlen/strcpy/strcmp/strcat/strstr/memcpy/memmove | |
2.Account book calculation | Practice using loops ( while, switch ) | |
3. Calculate interest && issue cards | Practice using arrays | |
4. Determine prime numbers | Practice using functions | |
5. Guess the number&& hand classification | Practice the use of global variables (extension: how to replace global variables) | (guess the number) (hand classification) |
6. The maximum element and the minimum element of the array | Learn about pointers | |
7. Design string reading function | Understand the string reading function getchar , the characteristics of strings (
|