Why C language is preferred? C language is preferred.
For most programmers, C language is the first language to learn programming, and few programmers who do not know C.
Maybe you will not use the C language for your future work or study, but it will allow you to understand programming-related concepts and bring you into the door for programming. later you will learn other languages and will be able to get started quickly, learning about a new language in seven days is not a myth.
C language has fewer concepts and less vocabulary, and contains basic programming elements. Many languages (such as C ++ and Java) later refer to C language, C language is the originator of modern programming languages. It has changed the programming world.
It is precisely because of the simplicity of the C language that beginners can quickly master programming technologies at a low learning cost and a short time.
For beginners, you can also learn the operating principles of many computers by learning the C language to lay a solid foundation for later learning.
C language is not only highly efficient (higher than C ++ and Java), but also widely used. It can be used to develop desktop software, hardware drivers, operating systems, single chip microcomputer, etc., from microwave oven to mobile phone, from cars to Smart TVs, there is a C language shadow.
In the world's programming language rankings, C language ranks first in most cases (occasionally won the throne by Java ).
Programming Language ranking in January 2015
Ranking |
Language |
Share |
1 |
C |
16.703% |
2 |
Java |
15.528% |
3 |
Objective-C |
6.953% |
4 |
C ++ |
6.705% |
5 |
C # |
5.045% |
6 |
PHP |
3.784% |
7 |
JavaScript |
3.274% |
8 |
Python |
2.613% |
9 |
Perl |
2.256% |
10 |
PL/SQL |
2.014% |
Therefore, it is necessary to learn a language older than yourself (C language was born in early 1970s ).
Of course, C language does not have no disadvantages. After all, it is an old man after 70 s, a little outdated. In recent years, C language and Python have emerged as a new language, winning the attention of everyone. It is Python.
When we started learning programming, Python was not so arrogant, and there were not many Chinese materials. Most people started learning from C, and university courses were arranged like this, c, assembly, C ++, Java, etc. C is used as a basic language.
Now the situation is different. Some beginners give up C and start learning Python. They think Python is simple and easy to learn, not as obscure as C.
In fact, the "simple" of Python mainly refers to the code format is clear and the syntax is not so strict. For example, the "C language Chinese network" is displayed on the screen ":
Print "文"
Compare the C code:
Puts (" 文 ");
You see, Python does not need parentheses or the last semicolon.
However, do not be misled. The programming concepts and ideas involved in Python are not simple, and they are much more complicated than the C language. According to my actual experience, the learning cost of Python is not lower than that of Java and C ++.
All programming languages are the same. Whether your senior schoolmaster tells you how simple it is or whether you think it is simple, it is actually a wrong idea. Do not be misled by these ideas.
You can think that language X is better than language Y in software development, or language M is more convenient than language N in data mining, but you can never think of a language that is simpler. Each programming language has its own application field. You must learn the appropriate language instead of the "simple" language.
In short, I don't think the cost of learning Python is smaller than that of C.
It is worth mentioning that Python is also developed using C. If you want to learn Python better, you must also learn C.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.