Skip to content

Instantly share code, notes, and snippets.

@nattybear
Last active March 4, 2021 11:31
Show Gist options
  • Save nattybear/82310125a28d826aad52c3db231551f1 to your computer and use it in GitHub Desktop.
Save nattybear/82310125a28d826aad52c3db231551f1 to your computer and use it in GitHub Desktop.
C언어 포인터

C언어 포인터

i의 주소는 i의 값과 다른 것이 맞습니다.

*pp는 다른 것이 맞습니다.

pi의 주소이고 *p는 그 주소가 가리키는 값입니다. 여기에서는 i를 가리킵니다.

따라서 아래와 같이 하면 i의 값이 20으로 바뀝니다.

*p = 20;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment