C언어2 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. C Programming: Basic structure for Beginners / C언어 기본 구조 I suddenly have to learn C programming for my "Basic Algorithm" class! I haven't taken the prerequisite courses for this course, but I have taught myself the necessary material out of necessity and eagerness to learn. 기초 알고리즘 수업 덕에 갑자기 C언어를 공부하게 되었다. 선수과목 이수를 안했기 때문에 필수적인 내용은 독학해야한다. Today, we will explore the basic structure of the C language. 오늘은 C언어의 간단한 기본 구조에 대해 설명하고자 한다. #include int main(.. 2024. 3. 12. 이전 1 다음