Go lang | 구조체 멤버 포인터의 표현
페이지 정보
- 작성자:
- 핵탐
- 작성일
- 11.08 22:39
- 조회
- 2,853
- 댓글
- 0
본문
[code]
fmt.Println(&user) // 0xc000006f48
fmt.Println(&user.ID) // 0xc0003cf730
fmt.Println(&(user).ID) // 0xc0003cf730
fmt.Println(&(user.ID)) // 0xc0003cf730
[/code]
&user.ID, &(user).ID, &(user.ID) 다 동일하다.
댓글 0개
등록된 댓글이 없습니다.