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

Count a character · ⁨عدّ حرفاً⁩

English

Count a character

Return how many times a given character appears in a C-string. Loop over the characters until the null terminator, adding 1 each time the current character matches target.

العربية

عد حرفًا محددًا

أدرِ كم مرة يظهر حرف معين في سلسلة نصية C. تكرر عبر الأحرف حتى المُنهِي الصفر، وأضف 1 في كل مرة يتطابق فيها الحرف الحالي مع target.

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

IGCSE, A-Level & AP