Skip to content · ⁨الانتقال إلى المحتوى⁩

Palindrome · ⁨عكسي⁩

English

Palindrome

Return 1 if a C-string reads the same in both directions, otherwise 0 — in C there's no bool by default, so we use the integers 1 and 0. Compare characters from the two ends moving inward.

العربية

عكسية

أدرِ 1 إذا كانت السلسلة النصية C تُقرأ بنفس الاتجاهين، وإلا أدرِ 0 — في C لا يوجد bool افتراضيًا، لذا نستخدم الأعداد الصحيحة 1 و0. قارن الأحرف من الطرفين المتجهين للداخل.

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP