Skip to content · ⁨Bỏ qua nội dung⁩

Preprocessor, const, static, and enum · ⁨Tiền xử lý, const, static và enum⁩

English

What runs before the compiler

  • Before the compiler sees your code, the preprocessor handles every line that starts with #.
  • It pastes in headers, replaces macros, and removes comments — a simple text step.
  • You have used it already: #include <stdio.h> is a preprocessor command.

Tiếng Việt

Những gì diễn ra trước trình biên dịch

  • Trước khi trình biên dịch thấy mã của bạn, trình tiền xử lý xử lý mọi dòng bắt đầu với #.
  • Nó dán vào header, thay thế macro, và xóa comment — một bước văn bản đơn giản.
  • Bạn đã sử dụng nó rồi: #include <stdio.h> là một lệnh tiền xử lý.

Trình tiền xử lý mở rộng #include và #define thành mã thuần túy, sau đó trình biên dịch chạy

Handout · ⁨Tài liệu⁩

Log in or create account · ⁨Đăng nhập hoặc tạo tài khoản⁩

IGCSE, A-Level & AP