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

Inflearn Community Q&A

lynmobis168721's profile image
lynmobis168721

asked

C Programming - From Introduction to Game Development

calculating machine

void p(int num) 함수에 char형 "a" 대입

Written on

·

173

1

p(int num)이라고 하는 의미가 p라는 함수에는 int형의 변수를 넣으라는 의미이고 그 변수를 함수내에서는 num으로 쓴다는 것으로 이해를 했는데....

char a= "abc" 이렇게 추가하고 

p(a)를 하니까 동작이 되면서 "48"로 인식이 됩니다.

제가 이해한 의미가 아닌가요...??

c

Answer

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

asked

Ask a question