강의

멘토링

커뮤니티

Inflearn Community Q&A

gulsamcono1891's profile image
gulsamcono1891

asked

C Programming - From Introduction to Game Development

Project

scanf의 ""안에는 문자가 들어가면 안되나요?

Written on

·

152

0

파이썬에서 하던 것 처럼 무심코

`scanf("%d", &answer);` 를

`scanf ("숫자를 입력하세요 : %d", &answer);` 라고 문자를 넣어버리니까 바로 오류가 발생하네요.

파이썬과는 달리 scanf에는 오로지 %d 같은 것들만 와야 하나요? 그 이유는 무엇인가요?

c

Answer

This question is waiting for answers
Be the first to answer!
gulsamcono1891's profile image
gulsamcono1891

asked

Ask a question