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

Variables, types, and arithmetic · ⁨משתנים, סוגים, וחשבון⁩

English

Every value has a type

  • In C, every variable has a type that says what kind of value it holds.
  • The three you use most: int (a whole number), double (a number with a decimal point), and char (a single character).
  • You must give the type when you create the variable: int n = 5; or double pi = 3.14;.
עברית

לכל ערך יש סוג

  • ב-C, לכל משתנה יש סוג המגדיר מה סוג הערך שהוא מחזיק.
  • שלושת הסוגים שהכי משתמשים בהם: int (מספר שלם), double (מספר עם נקודה עשרונית), וchar (תוו יחיד).
  • עליך להגדיר את הסוג בעת יצירת המשתנה: int n = 5; או double pi = 3.14;.

Handout · ⁨חומר עזר⁩

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

IGCSE, A-Level & AP