보이드 포인터라는것이 무엇인지 이해하고 사용해보자.
<aside> 📌
void* c 프로그램 전반에 걸쳐 사용빈도가 꽤 높은 포인터 형태이니 잘 알아두자.
</aside>
int 형 ← int형
float형 ← float 형
int 형 ← char 형, 묵시적 형변환(implicit castring)
char 형 ← int형, 강제로 캐스팅을 해줘야 한다. 명시적 형변환(Excplicit Casting)
int* 형 ← int*형
char에는 char을 넣을수 있다.
float에는 float형을 넣을수 있다.
void* 에는 아무거나(char*, int*, float*, double*, sutendt_t*, person_t*) 다 들어갈수 있다.