ENع
الدرس 03 · Basics

Variables and types

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

A C++ variable is a named box in memory, and its type is fixed when you declare it. Follow six short lines, then one bad one, as each declaration makes a box exactly as big as its type (int 4 bytes, double 8, char and bool 1), values move in and change, 7 / 2 turns out to be 3, and the compiler refuses to put text into an int before the program can run.

10 دقيقة9 خطوات6 أسئلةBeginner
شكل 3 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.