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