where is C used ? C 语言的应用场景
C is widely used C语言被广泛应用于:
- For creating desktop applications
- 用于创建桌面应用程序
- For developing games
- 游戏开发
- For designing Operating Systems
- 用于设计操作系统
- For designing Compilers
- 编译器设计
Working of C Step by Step Procedure C语言分步操作程序的实现
Writing Source Code 编写源代码::
-
The first step is to write a source code for the desired project. The code is written using a text editing tool.
-
第一步是为所需的项目编写源代码。代码是使用文本编辑工具编写的。
Compiling the source code 编译源代码:
-
The Source code is then converted into equivalent machine instructions, so that the computer can understandit.
-
然后将源代码转换成等价的机器指令,以便计算机能够理解。
Checking for Errors 检查错误:
- The code is checked for all possible errors.
- 检查代码是否存在所有可能的错误。
Linking 链接:
-
The code is linked with other files of code
-
代码与其他代码文件链接。
-
Sometimes it is difficult to put all your code in one file, so the computer needs to link them together if you decided to separate them.
-
有时很难将所有代码放在一个文件中,因此如果您决定将它们分开,计算机需要将它们链接在一起。
Checking for Errors 再次检查错误:
- The code is checked for all possible errors once again.
- 再次检查代码是否存在所有可能的错误。
Execution 执行、运行C程序:
- The code is then finally executed to get the desired output.
- 然后,最后执行代码以获得所需的输出。