Beginners of C language should first understand the key core concepts of C language (structure, three execution processes, priority, pointers, files, unions,
Function, scope, overloading, etc.), only by understanding these can we grasp the essence of C language in future learning.
Like a logical line, it runs through the entire C language system, giving people a "structured" thought system.
concept.
1. From a macro perspective, structuring is the programming philosophy of C language, that is, each functional module of C language is a structure.
A structure implements an operation or an algorithm. This structure is represented by curly braces "{ }", and the algorithm is inside the curly braces.
The curly braces "}" determine where the algorithm ends. These are common mistakes made by beginners, who often end the algorithm.
Something wrong.
2. The three execution processes are sequential process, conditional process, and loop process. The three processes are common execution processes of computers and are necessary.
The processes that need to be understood are that each algorithm is based on the execution order of these three processes.
3. Priority is the privilege of the priority algorithm when multiple functions are in parallel.
Failure to pay attention to the order of priorities will cause the algorithm to go awry; these priorities must be remembered.
4. Pointers are an important feature of C language and the essence of speeding up operations. They are operations on data addresses.
Rather than operating on data.
5. Files and unions are very simple concepts, so there is no need to explain them in detail. Files are just like daily concepts, and anyone who has learned data software is familiar with unions.
The solution is not too difficult.
6. From a micro perspective, functions are the driving mechanism of C language, and all statements are implemented by function drivers.
Remember the function commands and related configuration parameters, and you can take advantage of C. Note that you can't remember the function incorrectly, otherwise you will get wrong results.
If you can learn how to debug, you will have a deeper understanding of the function's function.
7. Scope is like a use-by date, which means the effect from here to there, and it will not work beyond this point (overdue).
If you know how to use scopes, you can clearly understand the relationship between functions and not get lost in huge function names.
Towards.
8. Overloading is to facilitate users, using a mechanism similar to calling to reduce the time it takes to write. Just like looking up a dictionary, you don't
To understand a word, you need to look it up in the dictionary (equivalent to calling other tools to achieve what you want to do), and looking up a dictionary is something you have already learned.
It is not enough to learn C language in general. You need to simulate various principles in your mind and realize the functions of computer C in the human brain.
Previous article:Design of a WIFI wireless formaldehyde monitor
Next article:How to choose a suitable human-machine interface for a microcontroller
- Popular Resources
- Popular amplifiers
- Algorithm Competition (Volume 2) (Scanned version) (Luo Yongjun and Guo Weibin)
- The Essentials of Reinforcement Learning: Core Algorithms and TensorFlow Implementation (Feng Chao)
- Algorithm Notebooks Practical Guide for Computer Training (Edited by Hu Fan and Zeng Lei)
- Algorithm Design (Jon Kleinberg Éva Tardos)
Recommended Content
Latest Microcontroller Articles
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
MoreDaily News
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
Guess you like
- TI eSports training video recommendation
- How to choose world-class automotive RF products?
- Good information on clock division
- I thought there was something wrong with IAR, but it turns out that I can input in multiple locations at the same time.
- Permanent magnet brushless motor and its driving technology
- Using cartridges and the ESP8266 microcontroller, a master gave Game Boy the ability to surf the Internet
- A way to significantly improve the distortion of audio playback systems
- MSP430F149
- It is time to accumulate some knowledge on GaN power device design when developing switching power supplies
- Brief Introduction to the Principle and Design of Flyback Converter