C language learning log 1!

xiaoxiao2021-03-06  49

Everyone said that Tan Haoqiang's C language program is well written. I went to the library a few days ago to borrow a book. I went home and watched it. I saw the first few chapters. I really wrote a good writing. The content of the page is: "This book is novel, the system is reasonable, the logic is strong, the text is smooth, and it is easy to understand." (It is true that the master is the master). So I want to attach my learning notes, there will be some problems, I hope that the good comrades used with c can help me with my email. My email address is: modestlee@sina.com. Of course, comrades like me can also send me an email, everyone will communicate, can promote each other. The first chapter exercise 1.1 Please write the main characteristics of C language according to your own understanding. A: The language is simple, compact, easy to use, flexible. Contains 32 keywords and 9 control statements. B: The operator is rich. Contains 34 operators. C: The data structure is rich in data structure and has a variety of data structures in the language. D: has a structured control statement. E: The syntax restriction is not very strict, the degree of freedom in the program is high. F: C language allows direct access to physical addresses, which can perform BIT operations, which is bit operation, most of the functions of assembly language, and can be used directly to operate hardware. G: Generate the high quality of the target code and high program execution efficiency. H: Program written in C language is good (compared to assembly).

1.2C language main use?

The development of operating systems and system applications, and occasions that need to operate hardware. Since I just exposed to the C language, it is not very wide, and the features that can be realized are not very well. I also hope that comrades developed with C language can send me an email, tell me the method and direction of the system to learn C. Thank you!

1.4C language is based on the basic unit of the program, is there any benefit?

It is easy to implement the modularization of the program.

1.5 outputs Very Good!

#include main () {printf ("very good! / n");}

1.6 Enter A, B, C3 value, output the maximum of them;

#include int MAX (int X, int y, int z) {INT i; if (x> y) i = x; ELSE IF (Y

example:

1. Output this is a c program # include main () {printf ("this is a c program./n");}

2. Squire #include main () {INT A, B, SUM; A = 123; B = 456; SUM = A B; Printf ("SUM IS% D / N", SUM); }

转载请注明原文地址:https://www.9cbs.com/read-40708.html

New Post(0)