본문 바로가기
C언어/따배씨 c언어

[따배씨] c = scanf("%d", &num);

by newbeverse 2022. 12. 7.

scanf에 정수가 아닌 문자를 입력할 경우 0 반환.

 

반응형