pointer1 C Programming : Concept of Pointer (1) / C언어 포인터 개념의 기초 A pointer contains the memory address of another variable. It points to the memory address, which is why it's called a pointer. 포인터는 메모리 주소를 저장한다. 메모리 주소를 가리킨다(points to)고 생각하면 된다. #include int main() { int a=5; int *pointer; pointer =&a; printf("%p\n", &a); printf("%p\n", pointer); return 0; } OUTPUT 0x16af43168 0x16af43168 int *pointer; Use '*' to declare an integer pointer variable. *를 이용해 in.. 2024. 3. 17. 이전 1 다음