C Language Overview
Welcome to the world of C! C was named C because the C language originated from the B language invented by Ken Thompson. It is a portable language, usually a C program can be very little change or even can run on other systems, it is powerful and flexible, most of the UNIX operating system is written in the C language, it is even used to create special effects for movies, it also allows programmers to access hardware and manipulate specific bits in memory , which also brings many dangerous and hard-to-follow programming errors ...
In the past 30 years, C has become one of the most important and popular programming languages. Until today, the C language has maintained a strong momentum. If you want to go into the world of programs, C is undoubtedly a must. What are you waiting for, now embark on your C-language tour!
Before we learn the C language, we need to understand some of the knowledge of C and the computer.
Bits, Bytes, and words
bits, Bytes, and words are used to describe the computer's storage unit.
the smallest storage unit is called a bit, which can hold one of two values (0 or 1). is the basic unit of computer storage.
byte (byte) is a common storage unit for a computer. For most machines, 1 bytes are 8 bits, because each bit is 0 or 1, so a byte contains 256 possible combinations of 0 and 1. We will learn the binary encoding in the "bitwise Operators" later.
for a given computer design, word (word) is a natural storage unit. The early IBM compatible machine was a 16-bit machine, meaning a word size of 16 bits. The word in the Pentium-based PC is 32 bits. A more powerful computer can have 64-bit or longer-digit words.
Good programming habits
Have good programming habits to write a readable program. A readable program is easier to understand, correct, and modify. The use of annotations mentioned earlier is a technique for improving readability.
Also, each statement is placed on one line, and the statements between the modules are aligned. The C language does not require you to do this, you can put multiple statements on one line or put a statement on multiple lines, but doing so will make your program look bad, and greatly reduce readability.
more learning content, just in the code bud Net Http://www.mayacoder.com/lesson/index
Let's look at a compilation example:
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/85/73/wKioL1ej8j6yJMckAAC8bYb7v_M375.png-wh_500x0-wm_3 -wmp_4-s_2117975645.png "title=" 1.png "alt=" Wkiol1ej8j6yjmckaac8byb7v_m375.png-wh_50 "/>
Basics of C-language learning before you start-1