Winter operations Quiz 1

This work belongs courses https://edu.cnblogs.com/campus/fzu/2020OOP
Where the job requires https://edu.cnblogs.com/campus/fzu/2020OOP/homework/10224
The target job 1, to understand the shortcomings of 2 C language, understand the process of compiling the C language / C ++ is
Text of the job https://www.cnblogs.com/cyn522/p/12232556.html
Other references 1 https://www.cnblogs.com/Eric-jx/articles/10048309.html 2 http://blog.sina.com.cn/s/blog_148b66fae0102yg8f.html 3 https: //www.cnblogs. com / CarpenterLee / p / 5994681.html top #

Questions and Answers:

Answer the following questions:

1, if you do not know C ++, please answer the following questions: What do you think C language defects (Where do you think the use is not easily).
If you already know C ++, please answer the following questions: Do you think C ++ and C language than what advantages.

2, access to relevant information, the compilation process briefly C language / C ++ is.

Answer:
1. What do you think C language defects?
① a variety of input and output, corresponding to different situations, too much trouble
② grammar less stringent restrictions on cross-border array subscript is not checked
③ high risk: design in C language written procedures lead to wrong as long as the wording is not very far off the mark will pass, does not complain, prone to loopholes
④ long development cycle: C language is a process-oriented language, so when the code is written to 100,000 rows prone to crashing, error
⑤ portability is not strong: C programs in other machines may not be able to run on, even to run, the results may be different
⑥ difficult to master, the requirements of some of the more skilled programming

2, access to relevant information, the compilation process briefly C language / C ++ is.
① Pretreatment: all the #include header files and file macros replace its real content, after pretreatment will be much larger, but still with a text editor to open
② compiler: the program will go through after the pre-converted into specific assembly code
③ assembly: the conversion step of the assembly code into machine code, produces an object file for each source file
④ link: a plurality of object files, and library files necessary to link into the final executable file

Guess you like

Origin www.cnblogs.com/cyn522/p/12232556.html