강의

멘토링

커뮤니티

Inflearn Community Q&A

andantej99's profile image
andantej99

asked

Learn C Programming by Following Along with Hong Jeong-mo

7.12 Multiple selection switch and break

getchar

Written on

·

252

0

while (getchar() != '\n')

     continue;

이게 어떻게 첫 글자만 읽는다는 의미인지 모르겠습니다 ㅠ

c

Answer 2

0

andantej99님의 프로필 이미지
andantej99
Questioner

앗 제가 표현을 잘못했네여! 첫번째 글자만 남기고 나머지는 버퍼에서 지운다 라고 하셨는데 저 식이 어떤 과정으로 진행되는지를 모르겠습니다

0

안녕하세요

저 코드는 입력 버퍼를 비우는 코드입니다.

첫 글자만 읽는다고 강의에서 들으신건가요? 구체적인 시간대와 설명 덧붙여주실 수 있을까요?

andantej99's profile image
andantej99

asked

Ask a question