#include<stdio.h>
typedef int* intP;
int main()
{
intP a,b;
printf("AA");
return 0;
}
이런 코드는 int*형 변수 a,b를 나타냅니다.
#include<stdio.h>
int main()
{
int* a,b;
printf("AA");
return 0;
}
이 코드는 똑같다고 생각함에도 불구하고 int*변수 a와 int형 변수 b를 생성합니다
똑같다고생각되지만 왜 나오는결과는 다른걸까요
typedef대한 괜찮은 문서 있으시면 추천바랍니다.