Skip to content

C basics: main, printf, and functions · ⁨C 基础:main、printf 与函数⁩

English

C is a compiled language

  • C is one of the oldest and most important languages. Linux, databases, and even Python are built with C.
  • Unlike Python, C is compiled: the computer first turns your code into a program, then runs it.
  • C is strict: every statement ends with a semicolon ;, and every variable needs a type.
中文

C 是一门编译型语言

  • C 是最古老、最重要的语言之一。Linux、数据库,甚至 Python 都是用 C 写成的。
  • 与 Python 不同,C 是编译型的:计算机先把你的代码变成一个程序,然后再运行它。
  • C 很严格:每条语句都以分号 ; 结尾,每个变量都需要一个类型。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩