Initial C language---How to write a Hello Word!

Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right.

Preface

C language is a general computer programming language that is widely used in low-level development. The design goal of the C language is to provide a programming language that can be easily
compiled, handle low-level memory, generate a small amount of machine code, and can run without any runtime environment support
.
</font>

1. What is C language?

1. Language---a tool for communication 2. Chinese---English--the language for communication between people 3. C/C++/Java....Thousands of computer languages----- -Language for communication between humans and computers---Computer language

2. How to write the first C language program

How to write the first C language code - - - - First, create a project

Software used: vs2019 (community version) vs2022

1. Create a project

(1)

(2)

(3)

(4)

(5)

2.Create .C file

In a C language program, there are two types of files : .h header header file .c source file

(6)

(7)

3. Then write the code

Insert image description here

The written C language code is text information, and these codes cannot be run directly.
C —> Compile + Link ----> Executable program — test.exe
vs2019 — Integrated development environment — Editing, compiling, linking, running, debugging and other functions (CTRL+ F5 to run)

Insert image description here

Guess you like

Origin blog.csdn.net/Ghr_C99/article/details/130020456