Traditional Culture Encyclopedia - Photography and portraiture - How to teach yourself C language? The master came in to impart learning experience.

How to teach yourself C language? The master came in to impart learning experience.

Leave this question to me, hehe, here are the answers to all your questions:

Question 1: Can we skip Chapter 5 and learn the rest?

A: Yes. When you study for the first time, there will always be questions. After learning for a long time, you will naturally understand that circular nesting is actually very simple. If you don't understand now, skip it for the time being.

Question 2: Is the fifth chapter closely related to the later chapters?

A: It's hard to say. The third, fourth and fifth chapters are about the program structure, which is independent of other chapters in content. But to learn any language, you have to learn these three chapters, so it is very important. Moreover, the knowledge of these three chapters will be used in the following chapters, but you don't have to worry. You only need to understand these three program structures and know the basic grammar to cope with the following chapters, so I said you can skip it if you don't know much.

Question 3. The learning methods in the later chapters of the fifth chapter.

A: I can only express my understanding and views.

1, Array: Array is the simplest of complex data structures, which literally means numbering some elements and putting them in a container. Each variable in the array is assigned and called in the same way as ordinary variables, except that it belongs to an element in the array and is "organized".

2. Functions: In programming, functions are usually called black boxes. The most difficult problem in learning a function is parameter passing, which I can't explain clearly in one or two sentences. The key point of learning a function is: What is the internal type of the return value of the function? What are the parameters of the function? What is the return value of the function? How is the function body realized? Ask yourself these questions, and you will know this function very well. In fact, the function body should be something in the black box, and the function parameters and return values are external interfaces.

3. Scope and storage category of variables: it is not a big problem to clarify two pairs of concepts: global variables and local variables, static variables and dynamic variables.

4. Pointer: Pointer is the most difficult and distinctive part of C language. It is not easy for beginners to understand deeply, and I can't make it clear in one or two sentences.

5. precompiling: you only need to focus on the usage of define in c language, and the rest is not a problem.

6. Structure, * * * Users and user-defined internal types: Structure is actually a "structured" array, and each element is not much different from ordinary variables. Learning the structure well is the basis of learning C++. As long as you learn the chapter on arrays well, it should be said that this chapter is a piece of cake.

7, bit operation: the second level is basically not tested, bit operation is often used when dealing with the underlying hardware, bit operation is actually to teach you to do binary arithmetic operation and logical operation, the method is the same, the unit is different.

8. Certificate: Level 2 is basically not tested. Beginners generally can't learn well. Learning this requires more code, not self-study. Otherwise, reading will always be very confusing.

Question 4: What should I do if I don't understand in my study?

A: Excellent QQ group (you need to find this yourself, I don't have it). I can help you solve some problems when I have time.

If you have any questions, you can leave a message on my blog: www.52vcc.com. I only recommend the website of CSDN. Although CSDN is in the water now, it is still a master.

Question 5. Which language is used more, C or delphi? Speak with data.

The following is the ranking of programming language usage given by authoritative websites:

/index . PHP/content/paper info/tpci/index . html

If you can't open the website, there are data below.

1、java

2、c

3、c++

4、php

5、visual basic

6、python

7、c#

8、perl

9、JavaScript

10

1 1, Delphi

12、pl\sql

13、sas

14、rpg

15、abap

16, Pascal

17、d

18、Lisp/Scheme

19, target -C

MATLAB

In fact, language is just a tool, and the key lies in programming ideas. You should be specific to one language, and so on. Just as you learn c++ well, you can basically use it to develop programs without learning visual basic.

The answer ends here. I have an article here about the learning experience of C++, which is also applicable to C language. Interested parties can have a look:

/it/cpp/9 1/