일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- Spring
- ibsheet
- MFC
- dock
- appspresso
- iBATIS
- swingx
- MySQL
- Struts
- sencha touch
- rowspan
- oracle
- Android
- PLSQL
- Eclipse
- node.js
- GPS
- JDOM
- 전자정부프레임워크
- JSON
- Ajax
- PHP
- phonegap
- 가우스
- tomcat
- jQuery
- WebLogic
- Google Map
- jsr 296
- 선택적조인
Archives
- Today
- Total
목록포인터 (1)
Where The Streets Have No Name
복잡한 포인터 선언 이해하기
출처 : http://www.jiniya.net/tt/555 C언어 게시판에 자주 올라오는 질문 중에 하나가 복잡한 포인터 선언문을 해석하는 것들이다.대부분의 학생들은 이것을 막연히 외우려고 한다. int *a[3]은 int 포인터를 저장하는 배열이고, int (*a)[3]은int 배열에 대한 포인터라고 외우는 것이다. 하지만 이렇게 외운 지식은 그 형태가 조금만 달라져도 무용지물이 된다. 그렇다면어떻게 해야 이러한 선언문을 손쉽게 해석할 수 있을까? 간단한 규칙만 이해하면 된다. 복잡한 선언을 정확하게 이해하기 위한 첫 단계는 선언문 내부에 나타나는 각 요소의 정확한 의미를 이해하는 것이다. 에는 선언문 내부에 나타나는 각 구성요소의 의미와 사용 예가 나와있다. 선언문을 해석할 때 영어를 이용하면 굉장..
Developement/C, C++, C#
2007. 8. 23. 21:12