scanf_s

Study/C언어

처음하시는 분들을 위한 C언어 기초강의 시즌2 - 07 [입력문과 출력문(printf, scanf, scanf_s)]

제 7강) 입력문과 출력문 우리는 6차례에 걸쳐서 printf문을 써왔습니다. #include int main(void) { printf("Hello World! \n"); return 0; } 위와 같이 써왔죠. 여기서 printf문은 "출력문"이라고 합니다. 그럼 출력문은 어떤것이 있을까요? #include int main(void) { int num; printf("Please Enter the Number : "); scanf("%d", &num); printf("Number is %d \n", num); return 0; } C언어에서 아주 일반적인 입력문으로는 "scanf"라는 것이 있습니다. 오늘 이 2가지를 집중적으로 배워보도록 하겠습니다. ※put, get 관련 함수들도 있긴하지만 이것들..

Eskeptor
'scanf_s' 태그의 글 목록