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 문자열에 특정 문자가 몇 번 나타나는지 반환합니다. null 종결자까지 반복하여 현재 문자가 target과 일치할 때마다 1을 추가합니다.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP