Skip to content · ⁨Lompat ke konten⁩

Preprocessor, const, static, and enum · ⁨Preprocessor, const, static, dan 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.

Bahasa Indonesia

Apa yang terjadi sebelum kompiler

  • Sebelum kompiler melihat kode Anda, preprocessor menangani setiap baris yang dimulai dengan #.
  • Ia menyematkan header, menggantikan makro, dan menghapus komentar — langkah teks sederhana.
  • Anda telah menggunakannya sebelumnya: #include <stdio.h> adalah perintah preprocessor.

Preprocessor memperluas #include dan #define menjadi kode biasa, kemudian kompiler berjalan

Handout · ⁨Lembar Kerja⁩

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP