인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

clatya964223's profile image
clatya964223

asked

C Programming - From Introduction to Game Development

Reading another file fscanf

fscanf 질문

Written on

·

197

0

안녕하세요 강의에서

fscaf(file, "%s %d", str2, &bonus);

printf("%s %d", str2, bonus);

위 처럼 불러온다고 하셨는데요!

왜 str은 주소로 불러오지 않고 bonus나 num[n]만 주소로 불러오는지 궁금합니다.

더불어 fprint로 보너스번호가 아니라 보너스 번호로 띄어쓰기하면 fscanf로 읽와서 출력할 때 보너스 0이라고 출력되는데 띄어쓰기는 자동으로 0으로 읽는 건지 궁금합니다!

c

Answer

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

asked

Ask a question