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

Functions, parameters, and return values · ⁨פונקציות, פרמטרים וערכי החזרה⁩

English

Why functions

  • A function is a named piece of work. You write it once and call it whenever you need it.
  • Functions keep programs short and clear, and let you build big jobs from small ones.
  • You have already used printf — a function from <stdio.h>. Now you write your own.
עברית

למה פונקציות

  • פונקציה היא חלק קרוי מהעבודה. אתה כותב אותה פעם אחת וקורא לה בכל פעם שיש צורך בה.
  • פונקציות שומרות על הקוד קצר ומובן, ומאפשרות לבנות משימות גדולות ממשימות קטנות.
  • כבר השתמשת ב-printf — פונקציה מ-<stdio.h>. עכשיו תכתוב את משלך.

Handout · ⁨חומר עזר⁩

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

IGCSE, A-Level & AP