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

Reverse in place · ⁨العكس في المكان⁩

English

Reverse in place

Reverse a C-string in place — change the characters in the same array rather than building a new string. The classic move: a left index at the start and a right index at the end, swap them, then step both toward the middle until they meet.

العربية

عكس في الموقع

عكس سلسلة نصية C في الموقع — غيّر الأحرف داخل نفس المصفوفة بدلاً من بناء سلسلة جديدة. الحركة الكلاسيكية: مؤشر يسار في البداية ومؤشر يمين في النهاية، قم بالتبديل بينهما، ثم تحرك كلا المؤشرين نحو المنتصف حتى يلتقيان.

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

IGCSE, A-Level & AP