Skip to content · ⁨דלג לתוכן⁩

Preprocessor, const, static, and enum · ⁨מעבד מקדים, const, static ו-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.

עברית

מה שקורה לפני המדורך

  • לפני שהמדורך רואה את הקוד שלך, המעבד הקדמי מטפל בכל שורה שמתחילה ב#.
  • הוא מדביק תוספות, מחליף מקרוסים ומסיר הערות — שלב טקסט פשוט.
  • כבר השתמשת בו: #include <stdio.h> הוא פקודת מעבד קדמי.

המעבד הקדמי מרחיב את #include ו-#define לקוד רגיל, ואז המדורך פועל

Handout · ⁨חומר עזר⁩

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP