> For the complete documentation index, see [llms.txt](https://zhaojunhhhu.gitbook.io/learn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zhaojunhhhu.gitbook.io/learn/chapter6/c.md).

# C学习笔记

***

## 1. 安装Windows环境下GCC

* 下载TDM-GCC并安装
* 设置环境变量`C:\TDM-GCC-64\bin`
* 编译方法如下

```bash
gcc -o hello "hello world.c"
.\hello.exe
hello world!
```
