-
[C] ํฌ์ธํฐ(Pointer) ์ฐ์ฐ ์ ๋ฆฌ
ํฌ์ธํฐ(Pointer) ์ฐ์ฐ ์ ๋ฆฌ๋ค์ด๊ฐ๋ฉฐํฌ์ธํฐ์ ์ฐ์ฐ์ ํ๋์ ์ฝ๋๋ก ์ดํดํด๋ณด์. ์ฝ๋#include void main() { int a[2] = { 4, 9 }; int *p = a; printf("1 : %d \n", *p); printf("2 : %d \n", (*p)++); printf("3 : %d \n", *p++); printf("4 : %d \n", *p--); printf("5 : %d \n", *(p++)); printf("6 : %d \n", *p); printf("7 : %d \n", *--p); printf("8 : %d \n", ++*p); printf("9 : %d \n", *(++p));} ๋๋ณด๊ธฐ1 : 4 2..
2022.06.24