ENع
الدرس 07 · Memory

Pointers

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

Every variable lives in memory at an address, and a pointer is a variable whose value is one of those addresses. Follow an eleven-line program as &x puts x's address into a pointer p, *p = 8 writes through p into x, p = &y makes it point somewhere else, and nullptr leaves it pointing nowhere, which you must never follow.

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

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