I dont know why I got unaccented even though pass the example on this problem.

Since anybody no ask question for this problem, I cant find another examples or find the problems. So I dont know how to fix this code.

Some body help me.

jaehoo1   5년 전

https://ideone.com/3mhPF0

(1) fflush를 stdin에 사용하는 것은 C의 표준이 아닙니다.

(2) strlen함수는 null문자(\0)가 나올때까지 탐색을 하고 길이를 반환합니다.

     arr배열에는 null문자가 입력된 적이 없으니 strlen(arr)이 나타내는 값은 의도한 값이 아닙니다.

     또, 반복문 안에 strlen()을 넣는것은 반드시 피해야 할 습관 중 하나입니다.

댓글을 작성하려면 로그인해야 합니다.