Some suggestions for learning C language

Publisher:PeacefulSoulLatest update time:2014-02-13 Source: dqjsw Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
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.
Reference address:Some suggestions for learning C language

Previous article:Design of a WIFI wireless formaldehyde monitor
Next article:How to choose a suitable human-machine interface for a microcontroller

Recommended Content
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号